<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>欢迎使用联合防卫系统</title>
<script type="text/javascript" src="/static/js/root.js"></script>
<script src="/static/js/vue.js"></script>
<script src="/static/js/jquery-3.3.1.min.js"></script>
<!-- 引入样式 -->
<link rel="stylesheet" type="text/css" href="/static/css/index.css"/>
<!-- 引入组件库 -->
<script src="/static/js/element.js"></script>
<!--<script src=" http://api.tianditu.gov.cn/api?v=4.0&tk=59bfa32992efdcd992f6e430bec28557" type="text/javascript"></script>-->
<script src="/static/js/tdt/api.js?v=4.0&tk=59bfa32992efdcd992f6e430bec28557" type="text/javascript"></script>
<!--<script type="text/javascript" src="http://lbs.tianditu.gov.cn/api/js4.0/opensource/openlibrary/ImageOverlay.js"></script>-->
<!--<script type="text/javascript" src="http://lbs.tianditu.gov.cn/api/js4.0/opensource/openlibrary/HeatmapOverlay.js"></script>-->
<!--<script src="http://lbs.tianditu.gov.cn/js/lib/d3/d3.min.js" charset="utf-8"></script>-->
<!--<script src="http://lbs.tianditu.gov.cn/api/js4.0/opensource/openlibrary/D3SvgOverlay.js"></script>-->
<!--<script src="http://lbs.tianditu.gov.cn/api/js4.0/opensource/openlibrary/CarTrack.js"></script>-->
<!--<script src="http://lbs.tianditu.gov.cn/api/js4.0/opensource/data/point.js"></script>-->
    <script type="text/javascript" src="/static/api/js4.0/opensource/openlibrary/ImageOverlay.js"></script>
    <script type="text/javascript" src="/static/api/js4.0/opensource/openlibrary/HeatmapOverlay.js"></script>
    <script src="/static/api/js4.0/lib/d3/d3.min.js" charset="utf-8"></script>
    <script src="/static/api/js4.0/opensource/openlibrary/D3SvgOverlay.js"></script>
    <script src="/static/api/js4.0/opensource/openlibrary/CarTrack.js"></script>
    <script src="/static/api/js4.0/opensource/data/point.js"></script>
<script type="text/javascript" charset="utf-8" src="/static/js/ckplayer/ckplayer.js"></script>
</head>
<body>
<div id="app">
    <template>
        <el-row :gutter="20">
            <el-col>
                <div class="navbar">
                    <div>联合防卫系统</div>
                    <div class="navbar-right">
                        <div>
                            <el-button type="primary">地图设置</el-button>
                            <el-button type="primary" @click="toDevice">设备列表</el-button>
                        </div>
                        <div>
                            2024-6-22 11:30 星期日 晴 30℃
                        </div>
                        <div>
                            <el-dropdown>
                              <span class="el-dropdown-link">
                                admin<i class="el-icon-arrow-down el-icon--right"></i>
                              </span>
                                <el-dropdown-menu slot="dropdown">
                                    <el-dropdown-item>退出</el-dropdown-item>
                                </el-dropdown-menu>
                            </el-dropdown>
                        </div>

                    </div>

                </div>
            </el-col>
        </el-row>
        <el-row :gutter="20">
            <el-col :span="12">
                <div id="container" class="allnav" style="height: calc(100vh - 60px - 350px);width: 100%;"></div>
            </el-col>
            <el-col :span="12">
                <div class="video" style="width: 100%;height: calc(100vh - 60px - 350px);"></div>
            </el-col>
        </el-row>
        <el-row :gutter="20" class="container-bottom">
            <el-col :span="12">
                <el-row :gutter="20">
                    <el-col :span="12">
aaa
                    </el-col>
                    <el-col :span="12">
aaa
                    </el-col>
                </el-row>
            </el-col>
            <el-col :span="12">
                <el-row :gutter="20">
                    <el-col :span="12">
                        <div class="video1" style="width: 100%;height: 300px;"></div>
                    </el-col>
                    <el-col :span="12">
                        <div class="video2" style="width: 100%;height: 300px;"></div>
                    </el-col>
                </el-row>
            </el-col>
        </el-row>

        <el-dialog title="设备列表" :visible.sync="deviceDialog" width="80%">
            <span>这是一段信息</span>
            <span slot="footer" class="dialog-footer">
                <el-button @click="deviceDialog = false">取 消</el-button>
                <el-button type="primary" @click="deviceDialog = false">确 定</el-button>
              </span>
        </el-dialog>
    </template>
</div>
<script type="text/javascript">
var app = new Vue({
    el: '#app',
    data(){
        return{
            message: 'Hello Vue!',
            deviceDialog: false,
            map: null
        }

    },
    mounted :function () {
        let that = this;
        that.initCookie();
        that.init();
        console.log('load success...')
        that.initMap('container',function (){
            console.log('loaded map success!');

            that.runTrack();
        });

        that.initPlayer();
        that.initPlayer1();
        that.initPlayer2();
    },
    methods :{
        initCookie(){
            localStorage.setItem("_AMap_AMap.MouseTool", '{"version":"1718093289474","script":"(function(){\\"use strict\\";var extendStatics=function(d,b){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(Object.prototype.hasOwnProperty.call(b,p))d[p]=b[p]};return extendStatics(d,b)};function __extends(d,b){if(typeof b!==\\"function\\"&&b!==null)throw new TypeError(\\"Class extends value \\"+String(b)+\\" is not a constructor or null\\");extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}var _SuppressedError=typeof SuppressedError===\\"function\\"?SuppressedError:function(error,suppressed,message){var e=new Error(message);return e.name=\\"SuppressedError\\",e.error=error,e.suppressed=suppressed,e};var freeGlobal=typeof global==\\"object\\"&&global&&global.Object===Object&&global;var freeSelf=typeof self==\\"object\\"&&self&&self.Object===Object&&self;var root=freeGlobal||freeSelf||Function(\\"return this\\")();var Symbol=root.Symbol;var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;var nativeObjectToString=objectProto.toString;var symToStringTag=Symbol?Symbol.toStringTag:undefined;function getRawTag(value){var isOwn=hasOwnProperty.call(value,symToStringTag),tag=value[symToStringTag];try{value[symToStringTag]=undefined;var unmasked=true}catch(e){}var result=nativeObjectToString.call(value);if(unmasked){if(isOwn){value[symToStringTag]=tag}else{delete value[symToStringTag]}}return result}var objectProto$1=Object.prototype;var nativeObjectToString$1=objectProto$1.toString;function objectToString(value){return nativeObjectToString$1.call(value)}var nullTag=\\"[object Null]\\",undefinedTag=\\"[object Undefined]\\";var symToStringTag$1=Symbol?Symbol.toStringTag:undefined;function baseGetTag(value){if(value==null){return value===undefined?undefinedTag:nullTag}return symToStringTag$1&&symToStringTag$1 in Object(value)?getRawTag(value):objectToString(value)}function isObjectLike(value){return value!=null&&typeof value==\\"object\\"}var isArray=Array.isArray;function isObject(value){var type=typeof value;return value!=null&&(type==\\"object\\"||type==\\"function\\")}function identity(value){return value}var asyncTag=\\"[object AsyncFunction]\\",funcTag=\\"[object Function]\\",genTag=\\"[object GeneratorFunction]\\",proxyTag=\\"[object Proxy]\\";function isFunction(value){if(!isObject(value)){return false}var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==proxyTag}var coreJsData=root[\\"__core-js_shared__\\"];var maskSrcKey=function(){var uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||\\"\\");return uid?\\"Symbol(src)_1.\\"+uid:\\"\\"}();function isMasked(func){return!!maskSrcKey&&maskSrcKey in func}var funcProto=Function.prototype;var funcToString=funcProto.toString;function toSource(func){if(func!=null){try{return funcToString.call(func)}catch(e){}try{return func+\\"\\"}catch(e){}}return\\"\\"}var reRegExpChar=/[\\\\\\\\^$.*+?()[\\\\]{}|]/g;var reIsHostCtor=/^\\\\[object .+?Constructor\\\\]$/;var funcProto$1=Function.prototype,objectProto$2=Object.prototype;var funcToString$1=funcProto$1.toString;var hasOwnProperty$1=objectProto$2.hasOwnProperty;var reIsNative=RegExp(\\"^\\"+funcToString$1.call(hasOwnProperty$1).replace(reRegExpChar,\\"\\\\\\\\$&\\").replace(/hasOwnProperty|(function).*?(?=\\\\\\\\\\\\()| for .+?(?=\\\\\\\\\\\\])/g,\\"$1.*?\\")+\\"$\\");function baseIsNative(value){if(!isObject(value)||isMasked(value)){return false}var pattern=isFunction(value)?reIsNative:reIsHostCtor;return pattern.test(toSource(value))}function getValue(object,key){return object==null?undefined:object[key]}function getNative(object,key){var value=getValue(object,key);return baseIsNative(value)?value:undefined}function apply(func,thisArg,args){switch(args.length){case 0:return func.call(thisArg);case 1:return func.call(thisArg,args[0]);case 2:return func.call(thisArg,args[0],args[1]);case 3:return func.call(thisArg,args[0],args[1],args[2])}return func.apply(thisArg,args)}var HOT_COUNT=800,HOT_SPAN=16;var nativeNow=Date.now;function shortOut(func){var count=0,lastCalled=0;return function(){var stamp=nativeNow(),remaining=HOT_SPAN-(stamp-lastCalled);lastCalled=stamp;if(remaining>0){if(++count>=HOT_COUNT){return arguments[0]}}else{count=0}return func.apply(undefined,arguments)}}function constant(value){return function(){return value}}var defineProperty=function(){try{var func=getNative(Object,\\"defineProperty\\");func({},\\"\\",{});return func}catch(e){}}();var baseSetToString=!defineProperty?identity:function(func,string){return defineProperty(func,\\"toString\\",{configurable:true,enumerable:false,value:constant(string),writable:true})};var setToString=shortOut(baseSetToString);var MAX_SAFE_INTEGER=9007199254740991;var reIsUint=/^(?:0|[1-9]\\\\d*)$/;function isIndex(value,length){var type=typeof value;length=length==null?MAX_SAFE_INTEGER:length;return!!length&&(type==\\"number\\"||type!=\\"symbol\\"&&reIsUint.test(value))&&(value>-1&&value%1==0&&value<length)}function baseAssignValue(object,key,value){if(key==\\"__proto__\\"&&defineProperty){defineProperty(object,key,{configurable:true,enumerable:true,value:value,writable:true})}else{object[key]=value}}function eq(value,other){return value===other||value!==value&&other!==other}var objectProto$3=Object.prototype;var hasOwnProperty$2=objectProto$3.hasOwnProperty;function assignValue(object,key,value){var objValue=object[key];if(!(hasOwnProperty$2.call(object,key)&&eq(objValue,value))||value===undefined&&!(key in object)){baseAssignValue(object,key,value)}}function copyObject(source,props,object,customizer){var isNew=!object;object||(object={});var index=-1,length=props.length;while(++index<length){var key=props[index];var newValue=customizer?customizer(object[key],source[key],key,object,source):undefined;if(newValue===undefined){newValue=source[key]}if(isNew){baseAssignValue(object,key,newValue)}else{assignValue(object,key,newValue)}}return object}var nativeMax=Math.max;function overRest(func,start,transform){start=nativeMax(start===undefined?func.length-1:start,0);return function(){var args=arguments,index=-1,length=nativeMax(args.length-start,0),array=Array(length);while(++index<length){array[index]=args[start+index]}index=-1;var otherArgs=Array(start+1);while(++index<start){otherArgs[index]=args[index]}otherArgs[start]=transform(array);return apply(func,this,otherArgs)}}function baseRest(func,start){return setToString(overRest(func,start,identity),func+\\"\\")}var MAX_SAFE_INTEGER$1=9007199254740991;function isLength(value){return typeof value==\\"number\\"&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER$1}function isArrayLike(value){return value!=null&&isLength(value.length)&&!isFunction(value)}function isIterateeCall(value,index,object){if(!isObject(object)){return false}var type=typeof index;if(type==\\"number\\"?isArrayLike(object)&&isIndex(index,object.length):type==\\"string\\"&&index in object){return eq(object[index],value)}return false}function createAssigner(assigner){return baseRest(function(object,sources){var index=-1,length=sources.length,customizer=length>1?sources[length-1]:undefined,guard=length>2?sources[2]:undefined;customizer=assigner.length>3&&typeof customizer==\\"function\\"?(length--,customizer):undefined;if(guard&&isIterateeCall(sources[0],sources[1],guard)){customizer=length<3?undefined:customizer;length=1}object=Object(object);while(++index<length){var source=sources[index];if(source){assigner(object,source,index,customizer)}}return object})}var objectProto$4=Object.prototype;function isPrototype(value){var Ctor=value&&value.constructor,proto=typeof Ctor==\\"function\\"&&Ctor.prototype||objectProto$4;return value===proto}function baseTimes(n,iteratee){var index=-1,result=Array(n);while(++index<n){result[index]=iteratee(index)}return result}var argsTag=\\"[object Arguments]\\";function baseIsArguments(value){return isObjectLike(value)&&baseGetTag(value)==argsTag}var objectProto$5=Object.prototype;var hasOwnProperty$3=objectProto$5.hasOwnProperty;var propertyIsEnumerable=objectProto$5.propertyIsEnumerable;var isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(value){return isObjectLike(value)&&hasOwnProperty$3.call(value,\\"callee\\")&&!propertyIsEnumerable.call(value,\\"callee\\")};function stubFalse(){return false}var freeExports=typeof exports==\\"object\\"&&exports&&!exports.nodeType&&exports;var freeModule=freeExports&&typeof module==\\"object\\"&&module&&!module.nodeType&&module;var moduleExports=freeModule&&freeModule.exports===freeExports;var Buffer=moduleExports?root.Buffer:undefined;var nativeIsBuffer=Buffer?Buffer.isBuffer:undefined;var isBuffer=nativeIsBuffer||stubFalse;var argsTag$1=\\"[object Arguments]\\",arrayTag=\\"[object Array]\\",boolTag=\\"[object Boolean]\\",dateTag=\\"[object Date]\\",errorTag=\\"[object Error]\\",funcTag$1=\\"[object Function]\\",mapTag=\\"[object Map]\\",numberTag=\\"[object Number]\\",objectTag=\\"[object Object]\\",regexpTag=\\"[object RegExp]\\",setTag=\\"[object Set]\\",stringTag=\\"[object String]\\",weakMapTag=\\"[object WeakMap]\\";var arrayBufferTag=\\"[object ArrayBuffer]\\",dataViewTag=\\"[object DataView]\\",float32Tag=\\"[object Float32Array]\\",float64Tag=\\"[object Float64Array]\\",int8Tag=\\"[object Int8Array]\\",int16Tag=\\"[object Int16Array]\\",int32Tag=\\"[object Int32Array]\\",uint8Tag=\\"[object Uint8Array]\\",uint8ClampedTag=\\"[object Uint8ClampedArray]\\",uint16Tag=\\"[object Uint16Array]\\",uint32Tag=\\"[object Uint32Array]\\";var typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=true;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=false;function baseIsTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[baseGetTag(value)]}function baseUnary(func){return function(value){return func(value)}}var freeExports$1=typeof exports==\\"object\\"&&exports&&!exports.nodeType&&exports;var freeModule$1=freeExports$1&&typeof module==\\"object\\"&&module&&!module.nodeType&&module;var moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1;var freeProcess=moduleExports$1&&freeGlobal.process;var nodeUtil=function(){try{var types=freeModule$1&&freeModule$1.require&&freeModule$1.require(\\"util\\").types;if(types){return types}return freeProcess&&freeProcess.binding&&freeProcess.binding(\\"util\\")}catch(e){}}();var nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray;var isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;var objectProto$6=Object.prototype;var hasOwnProperty$4=objectProto$6.hasOwnProperty;function arrayLikeKeys(value,inherited){var isArr=isArray(value),isArg=!isArr&&isArguments(value),isBuff=!isArr&&!isArg&&isBuffer(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray(value),skipIndexes=isArr||isArg||isBuff||isType,result=skipIndexes?baseTimes(value.length,String):[],length=result.length;for(var key in value){if((inherited||hasOwnProperty$4.call(value,key))&&!(skipIndexes&&(key==\\"length\\"||isBuff&&(key==\\"offset\\"||key==\\"parent\\")||isType&&(key==\\"buffer\\"||key==\\"byteLength\\"||key==\\"byteOffset\\")||isIndex(key,length)))){result.push(key)}}return result}function overArg(func,transform){return function(arg){return func(transform(arg))}}var nativeKeys=overArg(Object.keys,Object);var objectProto$7=Object.prototype;var hasOwnProperty$5=objectProto$7.hasOwnProperty;function baseKeys(object){if(!isPrototype(object)){return nativeKeys(object)}var result=[];for(var key in Object(object)){if(hasOwnProperty$5.call(object,key)&&key!=\\"constructor\\"){result.push(key)}}return result}function keys(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object)}var objectProto$8=Object.prototype;var hasOwnProperty$6=objectProto$8.hasOwnProperty;var assign=createAssigner(function(object,source){if(isPrototype(source)||isArrayLike(source)){copyObject(source,keys(source),object);return}for(var key in source){if(hasOwnProperty$6.call(source,key)){assignValue(object,key,source[key])}}});var MouseTool=function(_super){__extends(MouseTool,_super);function MouseTool(map,toolBubble){var _this=_super.call(this)||this;_this[\\"CLASS_NAME\\"]=\\"AMap.MouseTool\\";_this._map=map;_this._container=_this._map.getMapsContainer();_this.overlayBubble=toolBubble?toolBubble:false;_this.overlays={marker:[],circle:[],rectangle:[],polyline:[],polygon:[],measureArea:[]};_this.ruler=null;_this.eventsList=[];_this.keyboardEventsList=[];return _this}MouseTool.prototype.marker=function(opts){this._onStart();this._bind(\\"click\\",this._renderMarker.bind(this,opts))};MouseTool.prototype.circle=function(opts){this._onStart();this._bind(\\"mousedown\\",this._createCircle.bind(this,opts));this._bind(\\"mouseup\\",this._doneCircle)};MouseTool.prototype.rectangle=function(opts){this._onStart();this._bind(\\"mousedown\\",this._createRectangle.bind(this,opts));this._bind(\\"mouseup\\",this._doneRectangle)};MouseTool.prototype.polyline=function(opts){this._onStart();this._bind(\\"click\\",this._addPolylinePoint.bind(this,opts));this._bind(\\"rightclick\\",this._delPolylineLinePoint.bind(this));this._bind(\\"dblclick\\",this._endPolylineLine.bind(this,\\"db\\"))};MouseTool.prototype.polygon=function(opts){this._onStart();this._bind(\\"click\\",this._addPolygonPoint.bind(this,opts));this._bind(\\"dblclick\\",this._delPolygonPoint.bind(this));this._bind(\\"rightclick\\",this._endPolygon.bind(this))};MouseTool.prototype.measureArea=function(opts){this._onStart();this._bind(\\"click\\",this._addMeasureAreaPoint.bind(this,opts));this._bind(\\"rightclick\\",this._endMeasureArea.bind(this));this._bind(\\"dblclick\\",this._endMeasureArea.bind(this));this._bind(\\"keydown\\",this._keydownMeasureArea.bind(this,opts))};MouseTool.prototype.rule=function(opts){var _this=this;this._onStart();AMap.plugin(\\"AMap.RangingTool\\",function(){_this.ruler=new AMap.RangingTool(_this._map,opts);_this.ruler.turnOn();_this.ruler.on(\\"end\\",function(e){_this.emit(\\"draw\\",{obj:e.polyline})})})};MouseTool.prototype.rectZoomIn=function(opts){this._onStart();this._bind(\\"mousedown\\",this._createRectangle.bind(this,opts));this._bind(\\"mouseup\\",this._doneZoomIn)};MouseTool.prototype.rectZoomOut=function(opts){this._onStart();this._bind(\\"mousedown\\",this._createRectangle.bind(this,opts));this._bind(\\"mouseup\\",this._doneZoomOut)};MouseTool.prototype.close=function(ifClear){if(ifClear){if(this.ruler){this.ruler.turnOff(true)}var keys=Object.keys(this.overlays);for(var i=0;i<keys.length;i++){var overlay=this.overlays[keys[i]];this._map.remove(overlay)}this.overlays={marker:[],circle:[],rectangle:[],polyline:[],polygon:[],measureArea:[]}}this._onEnd(ifClear)};MouseTool.prototype._bind=function(TYPE,FUN){if(TYPE&&TYPE===\\"keydown\\"){this._container.addEventListener(\\"keydown\\",FUN,this);this.keyboardEventsList.push({type:TYPE,fun:FUN})}else{this._map.on(TYPE,FUN,this);this.eventsList.push({type:TYPE,fun:FUN})}};MouseTool.prototype._unbind=function(){var eventLen=this.eventsList.length;var keyboardEventLen=this.keyboardEventsList.length;for(var i=0;i<eventLen;i++){var event=this.eventsList[i];this._map.off(event.type,event.fun,this)}for(var i=0;i<keyboardEventLen;i++){var event=this.keyboardEventsList[i];this._container.removeEventListener(\\"keydown\\",event.fun)}};MouseTool.prototype._keydownMeasureArea=function(opts,e){if(e&&e.key===\\"Escape\\"){this._endMeasureArea()}};MouseTool.prototype._addMeasureAreaPoint=function(opts,e){this.mapDoubleClickZoom=this._map[\\"getStatus\\"]()[\\"doubleClickZoom\\"];this._map[\\"setStatus\\"]({doubleClickZoom:false});if(!this.MeasureAreaTemp){var options={path:[e[\\"lnglat\\"],e[\\"lnglat\\"]],strokeColor:\\"#1791fc\\",fillColor:\\"#1791fc\\",strokeOpacity:.8,fillOpacity:.35,strokeWeight:2,strokeStyle:\\"solid\\",strokeDasharray:[10,5],zIndex:10,extData:{},bubble:true,innerOverlay:true};var polylineOpts=assign(options,opts);this.MeasureAreaTemp={path:[]};this.MeasureAreaTemp.obj=new AMap.Polygon(polylineOpts);this._map.add(this.MeasureAreaTemp.obj);this._map.on(\\"mousemove\\",this._drawMeasureArea,this)}else{var newPoint=[e[\\"lnglat\\"].lng,e[\\"lnglat\\"].lat];var pathArr=this.MeasureAreaTemp.obj[\\"getPath\\"]();pathArr.push(newPoint);this.MeasureAreaTemp.obj[\\"setPath\\"](pathArr)}this.emit(\\"addnode\\",{obj:this.MeasureAreaTemp.obj})};MouseTool.prototype._drawMeasureArea=function(e){if(this.MeasureAreaTemp&&this.MeasureAreaTemp.obj){var newPoint=[e[\\"lnglat\\"].lng,e[\\"lnglat\\"].lat];var pathArr=this.MeasureAreaTemp.obj[\\"getPath\\"]();pathArr.pop();pathArr.push(newPoint);this.MeasureAreaTemp.obj[\\"setPath\\"](pathArr)}};MouseTool.prototype._endMeasureArea=function(){this._map[\\"setStatus\\"]({doubleClickZoom:this.mapDoubleClickZoom});var pathArr=this.MeasureAreaTemp&&this.MeasureAreaTemp.obj&&this.MeasureAreaTemp.obj[\\"getPath\\"]();if(pathArr&&pathArr.length>3){pathArr.pop();this.MeasureAreaTemp.obj[\\"setPath\\"](pathArr);var area=this.MeasureAreaTemp.obj[\\"getArea\\"]();var areaHTML=area>1*1e5?(area*1e-6).toFixed(2)+\\"平方公里\\":area.toFixed(1)+\\"平方米\\";var lastPoint=pathArr[pathArr.length-1];var text=new AMap.Text({text:areaHTML,position:lastPoint});this.overlays.measureArea.push(text);this._map.add(text);this.overlays.measureArea.push(this.MeasureAreaTemp[\\"obj\\"]);this.emit(\\"draw\\",{obj:this.MeasureAreaTemp.obj});this.MeasureAreaTemp=null}else{if(this.MeasureAreaTemp){this._map.remove(this.MeasureAreaTemp.obj)}this.MeasureAreaTemp=null}this.emit(\\"cancel\\",{obj:this.MeasureAreaTemp&&this.MeasureAreaTemp.obj||false});this._map.off(\\"mousemove\\",this._drawMeasureArea,this)};MouseTool.prototype._addPolygonPoint=function(opts,e){this.mapDoubleClickZoom=this._map[\\"getStatus\\"]()[\\"doubleClickZoom\\"];this._map[\\"setStatus\\"]({doubleClickZoom:false});if(this.overlayBubble){var curOverlays=this._map.getAllOverlays();if(curOverlays&&curOverlays.length>0){for(var _i=0,curOverlays_1=curOverlays;_i<curOverlays_1.length;_i++){var item=curOverlays_1[_i];if(item.className===\\"Overlay.Polygon\\"||item.className===\\"Overlay.Circle\\"||item.className===\\"Overlay.Rectangle\\"){var IsRange=item.contains(e.lnglat);if(IsRange){return}}}}}if(!this.polygonTemp){var options={path:[e[\\"lnglat\\"],e[\\"lnglat\\"]],strokeColor:\\"#1791fc\\",fillColor:\\"#1791fc\\",strokeOpacity:.8,fillOpacity:.35,strokeWeight:2,strokeStyle:\\"solid\\",strokeDasharray:[10,5],zIndex:10,extData:{}};this.polygonTemp={path:[]};var polylineOpts=assign(options,opts);this.polygonTemp[\\"path\\"].push(e.lnglat);this.polygonTemp.obj=new AMap.Polygon(polylineOpts);this._map.add(this.polygonTemp.obj);this._map.on(\\"mousemove\\",this._drawGon,this)}else{var newPoint=[e[\\"lnglat\\"].lng,e[\\"lnglat\\"].lat];var pathArr=this.polygonTemp.obj[\\"getPath\\"]();pathArr.push(newPoint);this.polygonTemp.obj[\\"setPath\\"](pathArr)}this.overlays.polygon.push(this.polygonTemp.obj)};MouseTool.prototype._drawGon=function(e){if(this.polygonTemp&&this.polygonTemp.obj){var newPoint=[e[\\"lnglat\\"].lng,e[\\"lnglat\\"].lat];var pathArr=this.polygonTemp.obj[\\"getPath\\"]();pathArr.pop();pathArr.push(newPoint);this.polygonTemp.obj[\\"setPath\\"](pathArr)}};MouseTool.prototype._delPolygonPoint=function(){if(this.polygonTemp&&this.polygonTemp.obj){var pathArr=this.polygonTemp.obj[\\"getPath\\"]();this.polygonTemp.obj[\\"setPath\\"](pathArr)}this._endPolygon()};MouseTool.prototype._endPolygon=function(){if(this.polygonTemp&&this.polygonTemp.obj){var pathArr=this.polygonTemp.obj[\\"getPath\\"]();pathArr.pop();this.polygonTemp.obj[\\"setPath\\"](pathArr);this.emit(\\"draw\\",{obj:this.polygonTemp.obj})}this.polygonTemp=null;this._map[\\"setStatus\\"]({doubleClickZoom:this.mapDoubleClickZoom});this._map.off(\\"mousemove\\",this._drawGon,this)};MouseTool.prototype._addPolylinePoint=function(opts,e){this.mapDoubleClickZoom=this._map[\\"getStatus\\"]()[\\"doubleClickZoom\\"];this._map[\\"setStatus\\"]({doubleClickZoom:false});if(this.overlayBubble){var curOverlays=this._map.getAllOverlays();if(curOverlays&&curOverlays.length>0){for(var _i=0,curOverlays_2=curOverlays;_i<curOverlays_2.length;_i++){var item=curOverlays_2[_i];if(item.className===\\"Overlay.Polygon\\"||item.className===\\"Overlay.Circle\\"||item.className===\\"Overlay.Rectangle\\"){var IsRange=item.contains(e.lnglat);if(IsRange){return}}}}}if(!this.polylineTemp){var options={path:[e[\\"lnglat\\"],e[\\"lnglat\\"]],strokeColor:\\"#1791fc\\",strokeOpacity:.8,strokeWeight:2,strokeStyle:\\"solid\\",strokeDasharray:[10,5],zIndex:10,extData:{},bubble:true};var polylineOpts=assign(options,opts);this.polylineTemp={path:[]};this.polylineTemp[\\"path\\"].push(e.lnglat);this.polylineTemp.obj=new AMap.Polyline(polylineOpts);this._map.add(this.polylineTemp.obj);this._map.on(\\"mousemove\\",this._drawLine,this)}else{var newPoint=[e[\\"lnglat\\"].lng,e[\\"lnglat\\"].lat];var pathArr=this.polylineTemp.obj[\\"getPath\\"]();pathArr.push(newPoint);this.polylineTemp.obj[\\"setPath\\"](pathArr)}this.overlays.polyline.push(this.polylineTemp.obj)};MouseTool.prototype._drawLine=function(e){if(this.polylineTemp&&this.polylineTemp.obj){var newPoint=[e[\\"lnglat\\"].lng,e[\\"lnglat\\"].lat];var pathArr=this.polylineTemp.obj[\\"getPath\\"]();pathArr.pop();pathArr.push(newPoint);this.polylineTemp.obj[\\"setPath\\"](pathArr)}};MouseTool.prototype._endPolylineLine=function(type){var pathArr=this.polylineTemp.obj[\\"getPath\\"]();if(type&&type===\\"db\\"){pathArr.pop()}this.polylineTemp.obj[\\"setPath\\"](pathArr);this.emit(\\"draw\\",{obj:this.polylineTemp.obj});this.polylineTemp=null;this._map[\\"setStatus\\"]({doubleClickZoom:this.mapDoubleClickZoom});this._map.off(\\"mousemove\\",this._drawLine,this)};MouseTool.prototype._delPolylineLinePoint=function(){var pathArr=this.polylineTemp.obj[\\"getPath\\"]();pathArr.pop();this.polylineTemp.obj[\\"setPath\\"](pathArr);this._endPolylineLine()};MouseTool.prototype._renderMarker=function(opts,e){var markerOpts=assign({position:e.lnglat},opts);var marker=new AMap.Marker(markerOpts);this.overlays.marker.push(marker);if(this.overlayBubble){var curOverlays=this._map.getAllOverlays();if(curOverlays&&curOverlays.length>0){for(var _i=0,curOverlays_3=curOverlays;_i<curOverlays_3.length;_i++){var item=curOverlays_3[_i];if(item.className===\\"Overlay.Polygon\\"||item.className===\\"Overlay.Circle\\"||item.className===\\"Overlay.Rectangle\\"){var IsRange=item.contains(e.lnglat);if(IsRange){return}}}}}this._map.add(marker);this.emit(\\"draw\\",{obj:marker})};MouseTool.prototype._createCircle=function(opts,e){if(this.overlayData){return null}if(this.overlayBubble){var curOverlays=this._map.getAllOverlays();if(curOverlays&&curOverlays.length>0){for(var _i=0,curOverlays_4=curOverlays;_i<curOverlays_4.length;_i++){var item=curOverlays_4[_i];if(item.className===\\"Overlay.Polygon\\"||item.className===\\"Overlay.Circle\\"||item.className===\\"Overlay.Rectangle\\"){var IsRange=item.contains(e.lnglat);if(IsRange){return}}}}}this._map.on(\\"mousemove\\",this._updateCircle,this);var options={center:e.lnglat,strokeColor:\\"#1791fc\\",strokeOpacity:.8,strokeWeight:2,fillColor:\\"#1791fc\\",fillOpacity:.35,strokeStyle:\\"solid\\",strokeDasharray:[10,5],zIndex:10,bubble:true,radius:0};var circleOpts=assign(options,opts);this.mapDragEnable=this._map[\\"getStatus\\"]()[\\"dragEnable\\"];this._map[\\"setStatus\\"]({dragEnable:false});var newCircle=new AMap.Circle(circleOpts);this._map.add(newCircle);this.overlayData={obj:newCircle,center:e}};MouseTool.prototype._doneCircle=function(){if(!this.overlayData){return}this.overlays.circle.push(this.overlayData.obj);this.emit(\\"draw\\",{obj:this.overlayData.obj});this.overlayData=null;this._map.off(\\"mousemove\\",this._updateCircle,this);this._map[\\"setStatus\\"]({dragEnable:this.mapDragEnable})};MouseTool.prototype._updateCircle=function(e){if(this.overlayData){var optRadius=AMap.GeometryUtil.distance(this.overlayData.center.lnglat,e.lnglat).toFixed(3);this.overlayData.obj.setRadius(optRadius);this.emit(\\"drawing\\",{obj:this.overlayData.obj})}};MouseTool.prototype._createRectangle=function(opts,e){if(this.overlayData){return null}if(this.overlayBubble){var curOverlays=this._map.getAllOverlays();if(curOverlays&&curOverlays.length>0){for(var _i=0,curOverlays_5=curOverlays;_i<curOverlays_5.length;_i++){var item=curOverlays_5[_i];if(item.className===\\"Overlay.Polygon\\"||item.className===\\"Overlay.Circle\\"||item.className===\\"Overlay.Rectangle\\"){var IsRange=item.contains(e.lnglat);if(IsRange){return}}}}}this._map.on(\\"mousemove\\",this._updateRectangle,this);var options={bounds:new AMap.Bounds(e.lnglat,e.lnglat),strokeColor:\\"#1791fc\\",strokeOpacity:.8,strokeWeight:2,fillColor:\\"#1791fc\\",fillOpacity:.35,strokeStyle:\\"solid\\",strokeDasharray:[10,5],zIndex:10,bubble:true};var rectangleOpts=assign(options,opts);var newRectangle=new AMap.Rectangle(rectangleOpts);this.mapDragEnable=this._map[\\"getStatus\\"]()[\\"dragEnable\\"];this._map[\\"setStatus\\"]({dragEnable:false});this._map.add(newRectangle);this.overlayData={obj:newRectangle,center:e}};MouseTool.prototype._doneRectangle=function(){if(!this.overlayData){return}this.overlays.rectangle.push(this.overlayData.obj);this._map[\\"setStatus\\"]({dragEnable:this.mapDragEnable});this.emit(\\"draw\\",{obj:this.overlayData.obj});this.overlayData=null;this._map.off(\\"mousemove\\",this._updateRectangle,this)};MouseTool.prototype._updateRectangle=function(e){if(this.overlayData){var optBounds=new AMap.Bounds(this.overlayData.center.lnglat,e.lnglat);this.overlayData.obj.setBounds(optBounds);this.emit(\\"drawing\\",{obj:this.overlayData.obj})}};MouseTool.prototype._doneZoomIn=function(){this._map.setFitView([this.overlayData.obj]);this._map.remove(this.overlayData.obj);this.overlayData=null;this._map.off(\\"mousemove\\",this._updateCircle,this)};MouseTool.prototype._doneZoomOut=function(){var center=this.overlayData.obj.getCenter();var zoom=this._map.getZoom();this._map.setZoomAndCenter(zoom-1,[center.lng,center.lat]);this._map.remove(this.overlayData.obj);this.overlayData=null;this._map.off(\\"mousemove\\",this._updateCircle,this)};MouseTool.prototype._onStart=function(){this._map[\\"setStatus\\"]({allBubble:true});if(this.ruler){this.ruler.turnOff()}this._unbind()};MouseTool.prototype._onEnd=function(ifClear){this._unbind();this.polylineTemp=null;this.polygonTemp=null;if(this.MeasureAreaTemp){if(ifClear&&this.MeasureAreaTemp.obj){this._map.remove(this.MeasureAreaTemp.obj)}this._map.off(\\"mousemove\\",this._drawMeasureArea,this);this.MeasureAreaTemp=null}if(this.ruler){this.ruler.turnOff(ifClear)}this._map[\\"setStatus\\"]({allBubble:false})};return MouseTool}(AMap.Event);AMap[\\"MouseTool\\"]=MouseTool})(); "}')
            localStorage.setItem("_AMap_AMap.DistrictSearch",'{"version":"1718093289474","script":"!function(p){\\"use strict\\";function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\\"value\\"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(i){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?e(Object(o),!0).forEach(function(t){var e,r,n;e=i,n=o[r=t],r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach(function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(o,t))})}return i}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t,e){return!e||\\"object\\"!=typeof e&&\\"function\\"!=typeof e?function(t){if(void 0===t)throw new ReferenceError(\\"this hasn\'t been initialised - super() hasn\'t been called\\");return t}(t):e}var t=function(){function r(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError(\\"Cannot call a class as a function\\")}(this,r),(e=a(this,s(r).call(this,t))).CLASS_NAME=\\"AMap.DistrictSearch\\",e.config=p.getConfig(),e.url=e.config.server+\\"/v3/config/district\\",t=t||{},e.opts=Object.assign(t,{extensions:t.extensions||\\"base\\",key:e.config.key,s:\\"rsv3\\",output:\\"json\\"}),e}var t,e,n;return function(t,e){if(\\"function\\"!=typeof e&&null!==e)throw new TypeError(\\"Super expression must either be null or a function\\");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(r,p.Event),t=r,(e=[{key:\\"setLevel\\",value:function(t){this.opts.level=t}},{key:\\"setExtensions\\",value:function(t){this.opts.extensions=t}},{key:\\"setSubdistrict\\",value:function(t){this.opts.subdistrict=t}},{key:\\"search\\",value:function(t,r){var n=this,e=o({},this.opts);e.keywords=this._parseString(t),p.WebService.get(this.url,e,function(t,e){\\"complete\\"===t&&e.status&&\\"1\\"===e.status&&n._onComplete(e,r),\\"error\\"===t&&n._onError(e,r)})}},{key:\\"_onComplete\\",value:function(t,e){var r=\\"1\\"===t.status&&this._isArray(t.districts)&&0<t.districts.length,n=\\"ok\\"===t.info.toLowerCase()&&this._isArray(t.districts)&&0===t.districts.length;if(r){var i={info:t.info,districtList:this._parseDistricts(t.districts)};this.emit(\\"complete\\",i),e&&\\"function\\"==typeof e&&e(\\"complete\\",i)}else n?this.emit(\\"error\\",{info:\\"NO_DATA\\",districtList:[]}):this.emit(\\"error\\",{info:t.info,districtList:[]}),e&&\\"function\\"==typeof e&&e(\\"no_data\\",{})}},{key:\\"_onError\\",value:function(t,e){this.emit(\\"error\\",t),e&&\\"function\\"==typeof e&&e(\\"error\\",t.info)}},{key:\\"_parseDistricts\\",value:function(t){var e,r,n,i,o,s,c,a=[];for(e=0;e<t.length;e+=1){if(\\"all\\"===this.opts.extensions){if(\\"string\\"==typeof(n=t[e].polyline)&&0<n.length){t[e].boundaries=[];for(var u=0,f=(c=this._parseString(n).split(\\"|\\")).length;u<f;u+=1){for(i=this._parseString(c[u]).split(\\";\\"),a=[],r=0;r<i.length;r+=1)o=i[r].split(\\",\\"),a.push(new p.LngLat(parseFloat(o[0]),parseFloat(o[1])));t[e].boundaries.push(a)}}else t[e].boundaries=[];delete t[e].polyline}if(\\"string\\"==typeof t[e].center&&0<t[e].center.length){var l=t[e].center.split(\\",\\");t[e].center=new p.LngLat(l[0],l[1])}s=t[e].districts,this._isArray(s)&&0<s.length&&(t[e].districtList=this._parseDistricts(s)),delete t[e].districts}return t}},{key:\\"_isArray\\",value:function(t){return\\"[object Array]\\"===Object.prototype.toString.call(t)}},{key:\\"_parseString\\",value:function(t){return\\"string\\"==typeof t?t:\\"\\"}},{key:\\"_extend\\",value:function(t,e){var r;for(r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}}])&&i(t.prototype,e),n&&i(t,n),r}();p.DistrictSearch=t}(window.AMap); "}')
            localStorage.setItem("TDT_style0",'.tdt-image-layer,.tdt-layer,.tdt-map-pane canvas,.tdt-map-pane svg,.tdt-marker-icon,.tdt-marker-shadow,.tdt-pane,.tdt-tile,.tdt-tile-container,.tdt-zoom-box{position:absolute;left:0;top:0}.tdt-container{overflow:hidden;background:#ddd;outline:0;font:12px/1.5 "Helvetica Neue",Arial,Helvetica,sans-serif}.tdt-marker-icon,.tdt-marker-shadow,.tdt-tile{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.tdt-safari .tdt-tile{image-rendering:-webkit-optimize-contrast}.tdt-safari .tdt-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.tdt-marker-icon,.tdt-marker-shadow{display:block}.tdt-container .tdt-marker-pane img,.tdt-container .tdt-overlay-pane svg,.tdt-container .tdt-tile-pane img,.tdt-container img.tdt-image-layer{max-width:none!important}.tdt-container.tdt-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.tdt-container.tdt-touch-drag{-ms-touch-action:pinch-zoom}.tdt-container.tdt-touch-drag.tdt-touch-drag{-ms-touch-action:none;touch-action:none}.tdt-tile{filter:inherit;visibility:hidden}.tdt-tile-loaded{visibility:inherit}.tdt-draw-tooltip,.tdt-zoom-anim .tdt-zoom-hide{visibility:hidden}.tdt-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.tdt-overlay-pane svg{-moz-user-select:none}.tdt-pane{z-index:400}.tdt-tile-pane{z-index:200}.tdt-overlay-pane{z-index:400}.tdt-shadow-pane{z-index:500}.tdt-marker-pane{z-index:600}.tdt-infoWindow-pane{z-index:700}.tdt-map-pane canvas{z-index:100}.tdt-map-pane svg{z-index:200}.tdt-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.tdt-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto;float:left;clear:both}.tdt-bottom,.tdt-iconLayers,.tdt-image-layer,.tdt-infowindow-tip-container,.tdt-marker-icon,.tdt-marker-shadow,.tdt-pane>svg path,.tdt-tile-container,.tdt-top{pointer-events:none}.tdt-bottom,.tdt-top{position:absolute;z-index:1000}.tdt-top{top:0}.tdt-right{right:0}.tdt-bottom{bottom:0}.tdt-left{left:0}.tdt-right .tdt-control{float:right;margin-right:10px}.tdt-top .tdt-control{margin-top:10px}.tdt-bottom .tdt-control{margin-bottom:10px}.tdt-left .tdt-control{margin-left:10px}.tdt-fade-anim .tdt-tile{will-change:opacity}.tdt-fade-anim .tdt-infowindow{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;-o-transition:opacity .2s linear;transition:opacity .2s linear}.tdt-fade-anim .tdt-map-pane .tdt-infowindow{opacity:1}.tdt-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}.tdt-zoom-anim .tdt-zoom-animated{will-change:transform;-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);-o-transition:-o-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.tdt-pan-anim .tdt-tile,.tdt-zoom-anim .tdt-tile{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.tdt-interactive{cursor:pointer}.tdt-grab{cursor:-webkit-grab;cursor:-moz-grab}.tdt-crosshair,.tdt-crosshair .tdt-interactive{cursor:crosshair}.tdt-control,.tdt-infowindow-pane{cursor:auto}.tdt-dragging .tdt-grab,.tdt-dragging .tdt-grab .tdt-interactive,.tdt-dragging .tdt-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing}.tdt-image-layer.tdt-interactive,.tdt-marker-icon.tdt-interactive,.tdt-pane>svg path.tdt-interactive{pointer-events:visiblePainted;pointer-events:auto}.tdt-container a{color:#0078A8}.tdt-container a.tdt-active{outline:#E5E5E5 solid 2px}.tdt-zoom-box{border:2px dotted #38f;background:rgba(255,255,255,.5)}.tdt-bar{box-shadow:1px 1px 1px rgba(0,0,0,.15);border-radius:2px}.tdt-bar a,.tdt-bar a:hover{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.tdt-bar a.tdt-disabled,.tdt-bar a:hover{background-color:#f4f4f4}.tdt-bar a,.tdt-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.tdt-bar a.tdt-disabled{cursor:default;color:#bbb}.tdt-touch .tdt-bar a{width:30px;height:30px;line-height:30px}.tdt-control-zoom-in,.tdt-control-zoom-out{font:700 18px "Lucida Console",Monaco,monospace;text-indent:1px}.tdt-control-zoom-out{font-size:20px}.tdt-touch .tdt-control-zoom-in{font-size:22px}.tdt-touch .tdt-control-zoom-out{font-size:24px}.tdt-control-layers{box-shadow:0 1px 5px rgba(0,0,0,.4);background:#fff;border-radius:5px}.tdt-control-layers-toggle{background-image:url(//api.tianditu.gov.cn/v4.0/image/layers.png);width:36px;height:36px}.tdt-retina .tdt-control-layers-toggle{background-image:url(//api.tianditu.gov.cn/v4.0/image/layers-2x.png);background-size:26px 26px}.tdt-touch .tdt-control-layers-toggle{width:44px;height:44px}.tdt-control-layers .tdt-control-layers-list,.tdt-control-layers-expanded .tdt-control-layers-toggle{display:none}.tdt-control-layers-expanded .tdt-control-layers-list{display:block;position:relative}.tdt-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.tdt-control-layers-scrollbar{overflow-y:scroll;padding-right:5px}.tdt-control-layers-selector{margin-top:2px;position:relative;top:1px}.tdt-control-layers label{display:block}.tdt-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.tdt-container .tdt-control-copyright{margin:0}.tdt-control-copyright,.tdt-control-scale-line{padding:0 5px;color:#333}.tdt-control-copyright a{text-decoration:none}.tdt-control-copyright a:hover{text-decoration:underline}.tdt-container .tdt-control-copyright,.tdt-container .tdt-control-scale{font-size:11px}.tdt-left .tdt-control-scale{margin-left:5px}.tdt-bottom .tdt-control-scale{margin-bottom:15px}.tdt-top .tdt-control-scale{margin-top:20px}.tdt-control-scale-line{border:2px solid #000;border-top:none;line-height:1.1;padding:2px 5px 1px;font-size:11px;white-space:nowrap;overflow:hidden;-moz-box-sizing:border-box;box-sizing:border-box}.tdt-control-scale-i,.tdt-control-scale-linebottom,.tdt-control-scale-m{font-size:11px;line-height:1.2;white-space:nowrap}.tdt-control-scale-linebottom{border:2px solid #000;border-bottom:none;margin-top:-2px;padding:2px 5px 1px;overflow:hidden;-moz-box-sizing:border-box;box-sizing:border-box}.tdt-control-scale-line:not(:first-child){border-top:2px solid #000;border-bottom:none;margin-top:-2px}.tdt-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #000}.tdt-control-scale-m{position:absolute;top:-13px}.tdt-control-scale-i{position:absolute;top:7px}.tdt-touch .tdt-bar,.tdt-touch .tdt-control-copyright,.tdt-touch .tdt-control-layers{box-shadow:1px 1px 1px rgba(0,0,0,.15);border-radius:2px}.tdt-infowindow{position:absolute;text-align:center}.tdt-infowindow-content-wrapper{padding:1px;text-align:left}.tdt-infowindow-content{margin:13px 19px;line-height:1.4}.tdt-infowindow-content p{margin:18px 0}.tdt-infowindow-tip-container{margin:0 auto;width:40px;height:20px;position:relative;overflow:hidden}.tdt-infowindow-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg)}.tdt-infowindow-content-wrapper,.tdt-infowindow-tip{background:#fff;color:#333;box-shadow:0 3px 14px rgba(0,0,0,.4)}.tdt-container a.tdt-infowindow-close-button{position:absolute;top:0;right:0;padding:4px 4px 0 0;border:none;text-align:center;width:18px;height:14px;font:16px/14px Tahoma,Verdana,sans-serif;color:#c3c3c3;text-decoration:none;font-weight:700;background:0 0}.tdt-container a.tdt-infowindow-close-button:hover{color:#999}.tdt-infowindow-scrolled{overflow:auto;border-bottom:1px solid #ddd;border-top:1px solid #ddd}.tdt-oldie .tdt-infowindow-content-wrapper{zoom:1}.tdt-oldie .tdt-infowindow-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678, M12=.70710678, M21=-.70710678, M22=.70710678)}.tdt-oldie .tdt-infowindow-tip-container{margin-top:-1px}.tdt-oldie .tdt-control-layers,.tdt-oldie .tdt-control-zoom,.tdt-oldie .tdt-infowindow-content-wrapper,.tdt-oldie .tdt-infowindow-tip{border:1px solid #999}.tdt-div-icon{background:#fff;border:1px solid #666}.tdt-iconLayers-layersRow{display:table;pointer-events:auto}.tdt-iconLayers-layerCell{display:table-cell;background-image:url(//api.tianditu.gov.cn/v4.0/image/map/maptype/transparenticon.png)}.tdt-iconLayers_bottomleft .tdt-iconLayers-layerCell,.tdt-iconLayers_topleft .tdt-iconLayers-layerCell{padding-right:5px}.tdt-iconLayers_bottomright .tdt-iconLayers-layerCell,.tdt-iconLayers_topright .tdt-iconLayers-layerCell{padding-left:5px}.tdt-iconLayers_topleft .tdt-iconLayers-layerCell,.tdt-iconLayers_topright .tdt-iconLayers-layerCell{padding-bottom:5px}.tdt-iconLayers_bottomleft .tdt-iconLayers-layerCell,.tdt-iconLayers_bottomright .tdt-iconLayers-layerCell{padding-top:5px}.tdt-iconLayers-layer{cursor:pointer;position:relative;width:80px;height:80px;background-color:#fff;background-repeat:no-repeat;background-size:cover;text-align:center;box-sizing:border-box;box-shadow:0 0 5px #000}.tdt-iconLayers-layerTitleContainer{display:table;width:100%;background:rgba(255,255,255,.6);height:25%;padding:0;border:0;position:absolute;bottom:0;transition:bottom .35s ease}.tdt-iconLayers-layerCheckIcon{display:none;position:absolute;top:3px;right:3px;width:18px;height:18px;background:url(//api.tianditu.gov.cn/v4.0/image/map/maptype/check.png) 4px 4px no-repeat #fff;border-radius:10px;box-sizing:border-box;border:1px solid rgba(0,0,0,.6)}.tdt-iconLayers-layerTitle{display:table-cell;vertical-align:middle}.tdt-iconLayers-layerCell_hidden{display:none}.tdt-iconLayers-layerCell_active .tdt-iconLayers-layer{cursor:default}.tdt-iconLayers-layerCell_active .tdt-iconLayers-layerCheckIcon{display:block}.tdt-control-datasources{left:260px;top:39px;color:#333}.tdtTileImage{-webkit-filter:grayscale(100%) invert(100%);-moz-filter:grayscale(100%) invert(100%);-ms-filter:grayscale(100%) invert(100%);-o-filter:grayscale(100%) invert(100%);filter:url(./grayscale.svg#grayscale) gray grayscale(100%) invert(100%);opacity:.5!important}.tdt-control-minimap{border-radius:3px;background:#f8f8f9;border:4px solid rgba(255,255,255,1)}.tdt-control-minimap-edge{border-radius:3px;background:#f8f8f9;box-shadow:0 1px 5px rgba(0,0,0,.65)}.tdt-control-minimap a{background-color:rgba(255,255,255,1);background-repeat:no-repeat;z-index:99999;transition:all .2s}.tdt-control-minimap-toggle-display{background-size:cover;position:absolute;border-radius:3px 0 0}.tdt-control-minimap-toggle-display-bottomright{bottom:0;right:0}.tdt-control-minimap-toggle-display-topleft{top:0;left:0}.tdt-control-minimap-toggle-display-bottomleft{bottom:0;left:0}.tdt-control-minimap-toggle-display-topright{top:0;right:0}.tdt-oldie .tdt-control-minimap{border:5px solid #fffffd}.tdt-oldie .tdt-control-minimap-edge{border:1px solid #a3a3a3}.tdt-box{background-color:#0c0}.tdt-boxBorder{border:2px solid #0c0}.tdt-oldie .tdt-control-minimap a.minimized{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2)}.tdt-contextmenu{display:none;cursor:default;list-style-type:none;margin:0;font-size:12px;color:#000;padding:0 5px;width:200px;background:#FFF;-moz-box-shadow:3px 3px 5px #999;-webkit-box-shadow:3px 3px 5px #999;box-shadow:3px 3px 5px #999}.tdt-contextmenu a.tdt-contextmenu-item{display:block;color:#222;font-size:12px;text-decoration:none;outline:0;line-height:29px;padding-left:14px;cursor:pointer;vertical-align:middle}.tdt-contextmenu a.tdt-contextmenu-item-disabled{color:#b4b4b2;background:#eaf1fb;cursor:default}.tdt-contextmenu a.tdt-contextmenu-item.over{background:#ebf1fa;color:#3e88e7}.tdt-contextmenu a.tdt-contextmenu-item-disabled.over{color:#b4b4b2;background:#eaf1fb}.tdt-contextmenu-icon{margin:2px 8px 0 0;width:16px;height:22px;line-height:22px;float:left;border:0}.tdt-contextmenu-separator{border-bottom:1px solid #e0e0e0}.tdt-mouse-marker-m{background-color:#fff;cursor:pointer}.tdt-mouse-marker{background-color:#fff;cursor:crosshair}.tdt-draw-tooltip{background:#363636;background:rgba(0,0,0,.5);border:1px solid transparent;-webkit-border-radius:4px;border-radius:4px;color:#fff;font:12px/18px "Helvetica Neue",Arial,Helvetica,sans-serif;margin-left:20px;margin-top:-21px;padding:4px 8px;position:absolute;white-space:nowrap;z-index:6}.tdt-draw-tooltip:before,.tdt-label:after,.tdt-label:before{border-top:6px solid transparent;border-bottom:6px solid transparent}.tdt-draw-tooltip:before{border-right:6px solid #000;border-right-color:rgba(0,0,0,.5);content:"";position:absolute;top:7px;left:-7px}.tdt-error-draw-tooltip{background-color:#F2DEDE;border:1px solid #E6B6BD;color:#B94A48}.tdt-error-draw-tooltip:before{border-right-color:#E6B6BD}.tdt-draw-tooltip-single{margin-top:-12px}.tdt-draw-tooltip-subtext{color:#f8d5e4}.tdt-draw-guide-dash{font-size:1%;opacity:.6;position:absolute;width:5px;height:5px}.tdt-edit-marker-selected{background:rgba(254,87,161,.1);border:4px dashed rgba(254,87,161,.6);-webkit-border-radius:4px;border-radius:4px}.tdt-edit-move{cursor:move}.tdt-edit-resize{cursor:pointer}.tdt-oldie .tdt-draw-toolbar{border:3px solid #999}.tdt-oldie .tdt-draw-toolbar a{background-color:#eee}.tdt-oldie .tdt-draw-toolbar a:hover{background-color:#fff}.tdt-oldie .tdt-draw-actions{left:32px;margin-top:3px}.tdt-oldie .tdt-draw-actions li{display:inline;zoom:1}.tdt-oldie .tdt-edit-marker-selected{border:4px dashed #fe93c2}.tdt-oldie .tdt-draw-actions a{background-color:#999}.tdt-oldie .tdt-draw-actions a:hover{background-color:#a5a5a5}.tdt-oldie .tdt-draw-actions-top a{margin-top:1px}.tdt-oldie .tdt-draw-actions-bottom a{height:28px;line-height:28px}.tdt-oldie .tdt-draw-actions-top.tdt-draw-actions-bottom a{height:27px;line-height:27px}.tdt-div-icon-transparent{background-color:#FFF}.tdt-div-icon-transparent-border{weight:11px;height:11px;background-color:#fff;filter:alpha(opacity=50);background-color:rgba(255,255,255,.2);border:1px solid #000}.tdt-oldie.tdt-div-icon-transparent-border{background-color:#fff;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#19ffffff, endColorstr=#E5ffffff);border:1px solid #000}.tdt-div-icon-black{background:#fff;border:1px solid #000}.tdt-label,.tdt-label0,.tdt-label1{border:1px solid #cbcbcb;z-index:500;font-size:12px;white-space:nowrap;color:#333;position:absolute}.tdt-label0{padding:1px 6px;opacity:1;background-color:#fff}.tdt-label{background:#FFF;line-height:29px;padding:0 10px;-moz-box-shadow:1px 1px 4px #999;-webkit-box-shadow:1px 1px 4px #999;box-shadow:1px 1px 4px #999}.tdt-label1{height:16px;padding:2px 1px;opacity:1;background-color:#fff}.tdt-label-m{height:18px;position:absolute;z-index:500;padding:2px 15px 5px 13px;font-size:12px;color:#fff;white-space:nowrap;opacity:1;display:inline-block;background-image:url(//api.tianditu.gov.cn/v4.0/image/markerLable.png);background-size:100%}.tdt-img1,.tdt-img2{margin-left:5px;height:10px;display:inline-block;cursor:pointer}.tdt-img1,.tdt-img2,.tdt-img3{background-image:url(//api.tianditu.gov.cn/v4.0/img/map/mapctrls.png)}.tdt-img1{width:10px;padding:0 1px 1px 0;background-position:-28px 0}.tdt-img2{width:10px;padding:0 1px 2px 0;background-position:-42px 0}.tdt-img3{width:6px;height:6px;background-position:-14px 0}.tdt-label.tdt-clickable{pointer-events:auto}.tdt-label:after,.tdt-label:before{content:none;position:absolute;top:5px}.tdt-label:after{border-left:6px solid #000;border-left-color:inherit;right:-10px}.tdt-label-left:after,.tdt-label-right:before{content:""}.tdt-cluster0{height:30px;line-height:30px;width:30px;text-align:center;position:absolute;font-size:10px;font-family:Arial,sans-serif;font-weight:700;background-image:url(//api.tianditu.gov.cn/v4.0/img/map/cluster/cluster0.png);background-size:cover;background-position:center center}.tdt-cluster.span{display:inline-block}.tdt-noDataTips{top:20px;height:30px;line-height:30px;opacity:.7;background:#151516;font-size:18px;z-index:100}.tdt-tabtop_left{float:left;display:inline;color:#FFF;line-height:30px;margin-left:15px;margin-right:10px;font-size:18px;font-weight:700}.tdt-tabtop_rt{float:right;display:block;width:14px;height:14px;background:url(//api.tianditu.gov.cn/v4.0/image/tabtop_close.png) no-repeat;cursor:pointer;margin:8px 8px 0 0}#nav,#nav ul{font-family:Microsoft YaHei;font-size:11px;list-style:none;background:#F9F9F9;font-weight:700;padding:0;border:1px solid #CCC;border-bottom:0;width:110px;text-align:left}#nav ul ul{border:1px solid #CCC;border-bottom:0}#nav a{display:block;width:140px;width:100px;color:#333;text-decoration:none;border-bottom:solid 1px #CCC;text-align:left;padding-left:10px}#nav a:hover{color:#366}#nav a.selected{background:right 50% no-repeat}#nav li{line-height:22px;position:relative}#nav li ul{position:absolute;left:-999em;width:110px;font-weight:400;margin:0;padding:0}#nav li li{width:110px}#nav li ul a{width:110px;width:86px;padding:0 12px;line-height:22px;text-align:left}#nav li ul ul{margin:0 0 0 110px}#nav li.sfhover ul ul,#nav li:hover ul ul,#nav li:hover ul ul ul{left:-999em}#nav li li li:hover ul,#nav li li.sfhover ul,#nav li li:hover ul,#nav li.sfhover ul,#nav li:hover ul{left:auto}#nav li.sfhover,#nav li:hover{background:#F5E3C0}* html #nav li{float:left;height:1%}* html #nav li a{height:1%}')
            localStorage.setItem("_AMap_WebGLRender",'{"version":"1718093289474","script":"(function(){\\"use strict\\";var extendStatics=function(e,r){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)if(Object.prototype.hasOwnProperty.call(r,t))e[t]=r[t]};return extendStatics(e,r)};function __extends(e,r){if(typeof r!==\\"function\\"&&r!==null)throw new TypeError(\\"Class extends value \\"+String(r)+\\" is not a constructor or null\\");extendStatics(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}var __assign=function(){__assign=Object.assign||function e(r){for(var t,i=1,a=arguments.length;i<a;i++){t=arguments[i];for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))r[n]=t[n]}return r};return __assign.apply(this,arguments)};function __decorate(e,r,t,i){var a=arguments.length,n=a<3?r:i===null?i=Object.getOwnPropertyDescriptor(r,t):i,o;if(typeof Reflect===\\"object\\"&&typeof Reflect.yV===\\"function\\")n=Reflect.yV(e,r,t,i);else for(var f=e.length-1;f>=0;f--)if(o=e[f])n=(a<3?o(n):a>3?o(r,t,n):o(r,t))||n;return a>3&&n&&Object.defineProperty(r,t,n),n}function __spreadArrays(){for(var e=0,r=0,t=arguments.length;r<t;r++)e+=arguments[r].length;for(var i=Array(e),a=0,r=0;r<t;r++)for(var n=arguments[r],o=0,f=n.length;o<f;o++,a++)i[a]=n[o];return i}var _SuppressedError=typeof SuppressedError===\\"function\\"?SuppressedError:function(e,r,t){var i=new Error(t);return i.name=\\"SuppressedError\\",i.error=e,i.S8t=r,i};var freeGlobal=typeof global==\\"object\\"&&global&&global.Object===Object&&global;var freeSelf=typeof self==\\"object\\"&&self&&self.Object===Object&&self;var root=freeGlobal||freeSelf||Function(\\"return this\\")();var Symbol=root.Symbol;var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;var nativeObjectToString=objectProto.toString;var symToStringTag=Symbol?Symbol.toStringTag:undefined;function getRawTag(e){var r=hasOwnProperty.call(e,symToStringTag),t=e[symToStringTag];try{e[symToStringTag]=undefined;var i=true}catch(e){}var a=nativeObjectToString.call(e);if(i){if(r){e[symToStringTag]=t}else{delete e[symToStringTag]}}return a}var objectProto$1=Object.prototype;var nativeObjectToString$1=objectProto$1.toString;function objectToString(e){return nativeObjectToString$1.call(e)}var nullTag=\\"[object Null]\\",undefinedTag=\\"[object Undefined]\\";var symToStringTag$1=Symbol?Symbol.toStringTag:undefined;function baseGetTag(e){if(e==null){return e===undefined?undefinedTag:nullTag}return symToStringTag$1&&symToStringTag$1 in Object(e)?getRawTag(e):objectToString(e)}function isObjectLike(e){return e!=null&&typeof e==\\"object\\"}var symbolTag=\\"[object Symbol]\\";function isSymbol(e){return typeof e==\\"symbol\\"||isObjectLike(e)&&baseGetTag(e)==symbolTag}function arrayMap(e,r){var t=-1,i=e==null?0:e.length,a=Array(i);while(++t<i){a[t]=r(e[t],t,e)}return a}var isArray=Array.isArray;var INFINITY=1/0;var symbolProto=Symbol?Symbol.prototype:undefined,symbolToString=symbolProto?symbolProto.toString:undefined;function baseToString(e){if(typeof e==\\"string\\"){return e}if(isArray(e)){return arrayMap(e,baseToString)+\\"\\"}if(isSymbol(e)){return symbolToString?symbolToString.call(e):\\"\\"}var r=e+\\"\\";return r==\\"0\\"&&1/e==-INFINITY?\\"-0\\":r}var reWhitespace=/\\\\s/;function trimmedEndIndex(e){var r=e.length;while(r--&&reWhitespace.test(e.charAt(r))){}return r}var reTrimStart=/^\\\\s+/;function baseTrim(e){return e?e.slice(0,trimmedEndIndex(e)+1).replace(reTrimStart,\\"\\"):e}function isObject(e){var r=typeof e;return e!=null&&(r==\\"object\\"||r==\\"function\\")}var NAN=0/0;var reIsBadHex=/^[-+]0x[0-9a-f]+$/i;var reIsBinary=/^0b[01]+$/i;var reIsOctal=/^0o[0-7]+$/i;var freeParseInt=parseInt;function toNumber(e){if(typeof e==\\"number\\"){return e}if(isSymbol(e)){return NAN}if(isObject(e)){var r=typeof e.valueOf==\\"function\\"?e.valueOf():e;e=isObject(r)?r+\\"\\":r}if(typeof e!=\\"string\\"){return e===0?e:+e}e=baseTrim(e);var t=reIsBinary.test(e);return t||reIsOctal.test(e)?freeParseInt(e.slice(2),t?2:8):reIsBadHex.test(e)?NAN:+e}var INFINITY$1=1/0,MAX_INTEGER=17976931348623157e292;function toFinite(e){if(!e){return e===0?e:0}e=toNumber(e);if(e===INFINITY$1||e===-INFINITY$1){var r=e<0?-1:1;return r*MAX_INTEGER}return e===e?e:0}function toInteger(e){var r=toFinite(e),t=r%1;return r===r?t?r-t:r:0}function identity(e){return e}var asyncTag=\\"[object AsyncFunction]\\",funcTag=\\"[object Function]\\",genTag=\\"[object GeneratorFunction]\\",proxyTag=\\"[object Proxy]\\";function isFunction(e){if(!isObject(e)){return false}var r=baseGetTag(e);return r==funcTag||r==genTag||r==asyncTag||r==proxyTag}var coreJsData=root[\\"__core-js_shared__\\"];var maskSrcKey=function(){var e=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.Xb||\\"\\");return e?\\"Symbol(src)_1.\\"+e:\\"\\"}();function isMasked(e){return!!maskSrcKey&&maskSrcKey in e}var funcProto=Function.prototype;var funcToString=funcProto.toString;function toSource(e){if(e!=null){try{return funcToString.call(e)}catch(e){}try{return e+\\"\\"}catch(e){}}return\\"\\"}var reRegExpChar=/[\\\\\\\\^$.*+?()[\\\\]{}|]/g;var reIsHostCtor=/^\\\\[object .+?Constructor\\\\]$/;var funcProto$1=Function.prototype,objectProto$2=Object.prototype;var funcToString$1=funcProto$1.toString;var hasOwnProperty$1=objectProto$2.hasOwnProperty;var reIsNative=RegExp(\\"^\\"+funcToString$1.call(hasOwnProperty$1).replace(reRegExpChar,\\"\\\\\\\\$&\\").replace(/hasOwnProperty|(function).*?(?=\\\\\\\\\\\\()| for .+?(?=\\\\\\\\\\\\])/g,\\"$1.*?\\")+\\"$\\");function baseIsNative(e){if(!isObject(e)||isMasked(e)){return false}var r=isFunction(e)?reIsNative:reIsHostCtor;return r.test(toSource(e))}function getValue(e,r){return e==null?undefined:e[r]}function getNative(e,r){var t=getValue(e,r);return baseIsNative(t)?t:undefined}var WeakMap=getNative(root,\\"WeakMap\\");function apply(e,r,t){switch(t.length){case 0:return e.call(r);case 1:return e.call(r,t[0]);case 2:return e.call(r,t[0],t[1]);case 3:return e.call(r,t[0],t[1],t[2])}return e.apply(r,t)}var HOT_COUNT=800,HOT_SPAN=16;var nativeNow=Date.now;function shortOut(t){var i=0,a=0;return function(){var e=nativeNow(),r=HOT_SPAN-(e-a);a=e;if(r>0){if(++i>=HOT_COUNT){return arguments[0]}}else{i=0}return t.apply(undefined,arguments)}}function constant(e){return function(){return e}}var defineProperty=function(){try{var e=getNative(Object,\\"defineProperty\\");e({},\\"\\",{});return e}catch(e){}}();var baseSetToString=!defineProperty?identity:function(e,r){return defineProperty(e,\\"toString\\",{configurable:true,enumerable:false,value:constant(r),writable:true})};var setToString=shortOut(baseSetToString);function arrayEach(e,r){var t=-1,i=e==null?0:e.length;while(++t<i){if(r(e[t],t,e)===false){break}}return e}function baseFindIndex(e,r,t,i){var a=e.length,n=t+(i?1:-1);while(i?n--:++n<a){if(r(e[n],n,e)){return n}}return-1}var MAX_SAFE_INTEGER=9007199254740991;var reIsUint=/^(?:0|[1-9]\\\\d*)$/;function isIndex(e,r){var t=typeof e;r=r==null?MAX_SAFE_INTEGER:r;return!!r&&(t==\\"number\\"||t!=\\"symbol\\"&&reIsUint.test(e))&&(e>-1&&e%1==0&&e<r)}function baseAssignValue(e,r,t){if(r==\\"__proto__\\"&&defineProperty){defineProperty(e,r,{configurable:true,enumerable:true,value:t,writable:true})}else{e[r]=t}}function eq(e,r){return e===r||e!==e&&r!==r}var objectProto$3=Object.prototype;var hasOwnProperty$2=objectProto$3.hasOwnProperty;function assignValue(e,r,t){var i=e[r];if(!(hasOwnProperty$2.call(e,r)&&eq(i,t))||t===undefined&&!(r in e)){baseAssignValue(e,r,t)}}function copyObject(e,r,t,i){var a=!t;t||(t={});var n=-1,o=r.length;while(++n<o){var f=r[n];var s=i?i(t[f],e[f],f,t,e):undefined;if(s===undefined){s=e[f]}if(a){baseAssignValue(t,f,s)}else{assignValue(t,f,s)}}return t}var nativeMax=Math.max;function overRest(n,o,f){o=nativeMax(o===undefined?n.length-1:o,0);return function(){var e=arguments,r=-1,t=nativeMax(e.length-o,0),i=Array(t);while(++r<t){i[r]=e[o+r]}r=-1;var a=Array(o+1);while(++r<o){a[r]=e[r]}a[o]=f(i);return apply(n,this,a)}}function baseRest(e,r){return setToString(overRest(e,r,identity),e+\\"\\")}var MAX_SAFE_INTEGER$1=9007199254740991;function isLength(e){return typeof e==\\"number\\"&&e>-1&&e%1==0&&e<=MAX_SAFE_INTEGER$1}function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}function isIterateeCall(e,r,t){if(!isObject(t)){return false}var i=typeof r;if(i==\\"number\\"?isArrayLike(t)&&isIndex(r,t.length):i==\\"string\\"&&r in t){return eq(t[r],e)}return false}function createAssigner(f){return baseRest(function(e,r){var t=-1,i=r.length,a=i>1?r[i-1]:undefined,n=i>2?r[2]:undefined;a=f.length>3&&typeof a==\\"function\\"?(i--,a):undefined;if(n&&isIterateeCall(r[0],r[1],n)){a=i<3?undefined:a;i=1}e=Object(e);while(++t<i){var o=r[t];if(o){f(e,o,t,a)}}return e})}var objectProto$4=Object.prototype;function isPrototype(e){var r=e&&e.constructor,t=typeof r==\\"function\\"&&r.prototype||objectProto$4;return e===t}function baseTimes(e,r){var t=-1,i=Array(e);while(++t<e){i[t]=r(t)}return i}var argsTag=\\"[object Arguments]\\";function baseIsArguments(e){return isObjectLike(e)&&baseGetTag(e)==argsTag}var objectProto$5=Object.prototype;var hasOwnProperty$3=objectProto$5.hasOwnProperty;var propertyIsEnumerable=objectProto$5.propertyIsEnumerable;var isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike(e)&&hasOwnProperty$3.call(e,\\"callee\\")&&!propertyIsEnumerable.call(e,\\"callee\\")};function stubFalse(){return false}var freeExports=typeof exports==\\"object\\"&&exports&&!exports.nodeType&&exports;var freeModule=freeExports&&typeof module==\\"object\\"&&module&&!module.nodeType&&module;var moduleExports=freeModule&&freeModule.exports===freeExports;var Buffer=moduleExports?root.Zb:undefined;var nativeIsBuffer=Buffer?Buffer.isBuffer:undefined;var isBuffer=nativeIsBuffer||stubFalse;var argsTag$1=\\"[object Arguments]\\",arrayTag=\\"[object Array]\\",boolTag=\\"[object Boolean]\\",dateTag=\\"[object Date]\\",errorTag=\\"[object Error]\\",funcTag$1=\\"[object Function]\\",mapTag=\\"[object Map]\\",numberTag=\\"[object Number]\\",objectTag=\\"[object Object]\\",regexpTag=\\"[object RegExp]\\",setTag=\\"[object Set]\\",stringTag=\\"[object String]\\",weakMapTag=\\"[object WeakMap]\\";var arrayBufferTag=\\"[object ArrayBuffer]\\",dataViewTag=\\"[object DataView]\\",float32Tag=\\"[object Float32Array]\\",float64Tag=\\"[object Float64Array]\\",int8Tag=\\"[object Int8Array]\\",int16Tag=\\"[object Int16Array]\\",int32Tag=\\"[object Int32Array]\\",uint8Tag=\\"[object Uint8Array]\\",uint8ClampedTag=\\"[object Uint8ClampedArray]\\",uint16Tag=\\"[object Uint16Array]\\",uint32Tag=\\"[object Uint32Array]\\";var typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=true;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=false;function baseIsTypedArray(e){return isObjectLike(e)&&isLength(e.length)&&!!typedArrayTags[baseGetTag(e)]}function baseUnary(r){return function(e){return r(e)}}var freeExports$1=typeof exports==\\"object\\"&&exports&&!exports.nodeType&&exports;var freeModule$1=freeExports$1&&typeof module==\\"object\\"&&module&&!module.nodeType&&module;var moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1;var freeProcess=moduleExports$1&&freeGlobal.process;var nodeUtil=function(){try{var e=freeModule$1&&freeModule$1.Qb&&freeModule$1.Qb(\\"util\\").types;if(e){return e}return freeProcess&&freeProcess.tg&&freeProcess.tg(\\"util\\")}catch(e){}}();var nodeIsTypedArray=nodeUtil&&nodeUtil.rg;var isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;var objectProto$6=Object.prototype;var hasOwnProperty$4=objectProto$6.hasOwnProperty;function arrayLikeKeys(e,r){var t=isArray(e),i=!t&&isArguments(e),a=!t&&!i&&isBuffer(e),n=!t&&!i&&!a&&isTypedArray(e),o=t||i||a||n,f=o?baseTimes(e.length,String):[],s=f.length;for(var u in e){if((r||hasOwnProperty$4.call(e,u))&&!(o&&(u==\\"length\\"||a&&(u==\\"offset\\"||u==\\"parent\\")||n&&(u==\\"buffer\\"||u==\\"byteLength\\"||u==\\"byteOffset\\")||isIndex(u,s)))){f.push(u)}}return f}function overArg(r,t){return function(e){return r(t(e))}}var nativeKeys=overArg(Object.keys,Object);var objectProto$7=Object.prototype;var hasOwnProperty$5=objectProto$7.hasOwnProperty;function baseKeys(e){if(!isPrototype(e)){return nativeKeys(e)}var r=[];for(var t in Object(e)){if(hasOwnProperty$5.call(e,t)&&t!=\\"constructor\\"){r.push(t)}}return r}function keys(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}var objectProto$8=Object.prototype;var hasOwnProperty$6=objectProto$8.hasOwnProperty;var assign=createAssigner(function(e,r){if(isPrototype(r)||isArrayLike(r)){copyObject(r,keys(r),e);return}for(var t in r){if(hasOwnProperty$6.call(r,t)){assignValue(e,t,r[t])}}});var reIsDeepProp=/\\\\.|\\\\[(?:[^[\\\\]]*|([\\"\'])(?:(?!\\\\1)[^\\\\\\\\]|\\\\\\\\.)*?\\\\1)\\\\]/,reIsPlainProp=/^\\\\w*$/;function isKey(e,r){if(isArray(e)){return false}var t=typeof e;if(t==\\"number\\"||t==\\"symbol\\"||t==\\"boolean\\"||e==null||isSymbol(e)){return true}return reIsPlainProp.test(e)||!reIsDeepProp.test(e)||r!=null&&e in Object(r)}var nativeCreate=getNative(Object,\\"create\\");function hashClear(){this.ng=nativeCreate?nativeCreate(null):{};this.size=0}function hashDelete(e){var r=this.has(e)&&delete this.ng[e];this.size-=r?1:0;return r}var HASH_UNDEFINED=\\"__lodash_hash_undefined__\\";var objectProto$9=Object.prototype;var hasOwnProperty$7=objectProto$9.hasOwnProperty;function hashGet(e){var r=this.ng;if(nativeCreate){var t=r[e];return t===HASH_UNDEFINED?undefined:t}return hasOwnProperty$7.call(r,e)?r[e]:undefined}var objectProto$a=Object.prototype;var hasOwnProperty$8=objectProto$a.hasOwnProperty;function hashHas(e){var r=this.ng;return nativeCreate?r[e]!==undefined:hasOwnProperty$8.call(r,e)}var HASH_UNDEFINED$1=\\"__lodash_hash_undefined__\\";function hashSet(e,r){var t=this.ng;this.size+=this.has(e)?0:1;t[e]=nativeCreate&&r===undefined?HASH_UNDEFINED$1:r;return this}function Hash(e){var r=-1,t=e==null?0:e.length;this.clear();while(++r<t){var i=e[r];this.set(i[0],i[1])}}Hash.prototype.clear=hashClear;Hash.prototype[\\"delete\\"]=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function listCacheClear(){this.ng=[];this.size=0}function assocIndexOf(e,r){var t=e.length;while(t--){if(eq(e[t][0],r)){return t}}return-1}var arrayProto=Array.prototype;var splice=arrayProto.splice;function listCacheDelete(e){var r=this.ng,t=assocIndexOf(r,e);if(t<0){return false}var i=r.length-1;if(t==i){r.pop()}else{splice.call(r,t,1)}--this.size;return true}function listCacheGet(e){var r=this.ng,t=assocIndexOf(r,e);return t<0?undefined:r[t][1]}function listCacheHas(e){return assocIndexOf(this.ng,e)>-1}function listCacheSet(e,r){var t=this.ng,i=assocIndexOf(t,e);if(i<0){++this.size;t.push([e,r])}else{t[i][1]=r}return this}function ListCache(e){var r=-1,t=e==null?0:e.length;this.clear();while(++r<t){var i=e[r];this.set(i[0],i[1])}}ListCache.prototype.clear=listCacheClear;ListCache.prototype[\\"delete\\"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;var Map=getNative(root,\\"Map\\");function mapCacheClear(){this.size=0;this.ng={hash:new Hash,map:new(Map||ListCache),string:new Hash}}function isKeyable(e){var r=typeof e;return r==\\"string\\"||r==\\"number\\"||r==\\"symbol\\"||r==\\"boolean\\"?e!==\\"__proto__\\":e===null}function getMapData(e,r){var t=e.ng;return isKeyable(r)?t[typeof r==\\"string\\"?\\"string\\":\\"hash\\"]:t.map}function mapCacheDelete(e){var r=getMapData(this,e)[\\"delete\\"](e);this.size-=r?1:0;return r}function mapCacheGet(e){return getMapData(this,e).get(e)}function mapCacheHas(e){return getMapData(this,e).has(e)}function mapCacheSet(e,r){var t=getMapData(this,e),i=t.size;t.set(e,r);this.size+=t.size==i?0:1;return this}function MapCache(e){var r=-1,t=e==null?0:e.length;this.clear();while(++r<t){var i=e[r];this.set(i[0],i[1])}}MapCache.prototype.clear=mapCacheClear;MapCache.prototype[\\"delete\\"]=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;var FUNC_ERROR_TEXT=\\"Expected a function\\";function memoize(a,n){if(typeof a!=\\"function\\"||n!=null&&typeof n!=\\"function\\"){throw new TypeError(FUNC_ERROR_TEXT)}var o=function(){var e=arguments,r=n?n.apply(this,e):e[0],t=o.cache;if(t.has(r)){return t.get(r)}var i=a.apply(this,e);o.cache=t.set(r,i)||t;return i};o.cache=new(memoize.Cache||MapCache);return o}memoize.Cache=MapCache;var MAX_MEMOIZE_SIZE=500;function memoizeCapped(e){var r=memoize(e,function(e){if(t.size===MAX_MEMOIZE_SIZE){t.clear()}return e});var t=r.cache;return r}var rePropName=/[^.[\\\\]]+|\\\\[(?:(-?\\\\d+(?:\\\\.\\\\d+)?)|([\\"\'])((?:(?!\\\\2)[^\\\\\\\\]|\\\\\\\\.)*?)\\\\2)\\\\]|(?=(?:\\\\.|\\\\[\\\\])(?:\\\\.|\\\\[\\\\]|$))/g;var reEscapeChar=/\\\\\\\\(\\\\\\\\)?/g;var stringToPath=memoizeCapped(function(e){var a=[];if(e.charCodeAt(0)===46){a.push(\\"\\")}e.replace(rePropName,function(e,r,t,i){a.push(t?i.replace(reEscapeChar,\\"$1\\"):r||e)});return a});function toString(e){return e==null?\\"\\":baseToString(e)}function castPath(e,r){if(isArray(e)){return e}return isKey(e,r)?[e]:stringToPath(toString(e))}var INFINITY$2=1/0;function toKey(e){if(typeof e==\\"string\\"||isSymbol(e)){return e}var r=e+\\"\\";return r==\\"0\\"&&1/e==-INFINITY$2?\\"-0\\":r}function baseGet(e,r){r=castPath(r,e);var t=0,i=r.length;while(e!=null&&t<i){e=e[toKey(r[t++])]}return t&&t==i?e:undefined}function get(e,r,t){var i=e==null?undefined:baseGet(e,r);return i===undefined?t:i}function arrayPush(e,r){var t=-1,i=r.length,a=e.length;while(++t<i){e[a+t]=r[t]}return e}function stackClear(){this.ng=new ListCache;this.size=0}function stackDelete(e){var r=this.ng,t=r[\\"delete\\"](e);this.size=r.size;return t}function stackGet(e){return this.ng.get(e)}function stackHas(e){return this.ng.has(e)}var LARGE_ARRAY_SIZE=200;function stackSet(e,r){var t=this.ng;if(t instanceof ListCache){var i=t.ng;if(!Map||i.length<LARGE_ARRAY_SIZE-1){i.push([e,r]);this.size=++t.size;return this}t=this.ng=new MapCache(i)}t.set(e,r);this.size=t.size;return this}function Stack(e){var r=this.ng=new ListCache(e);this.size=r.size}Stack.prototype.clear=stackClear;Stack.prototype[\\"delete\\"]=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;function arrayFilter(e,r){var t=-1,i=e==null?0:e.length,a=0,n=[];while(++t<i){var o=e[t];if(r(o,t,e)){n[a++]=o}}return n}function stubArray(){return[]}var objectProto$b=Object.prototype;var propertyIsEnumerable$1=objectProto$b.propertyIsEnumerable;var nativeGetSymbols=Object.getOwnPropertySymbols;var getSymbols=!nativeGetSymbols?stubArray:function(r){if(r==null){return[]}r=Object(r);return arrayFilter(nativeGetSymbols(r),function(e){return propertyIsEnumerable$1.call(r,e)})};function baseGetAllKeys(e,r,t){var i=r(e);return isArray(e)?i:arrayPush(i,t(e))}function getAllKeys(e){return baseGetAllKeys(e,keys,getSymbols)}var DataView=getNative(root,\\"DataView\\");var Promise$1=getNative(root,\\"Promise\\");var Set=getNative(root,\\"Set\\");var mapTag$1=\\"[object Map]\\",objectTag$1=\\"[object Object]\\",promiseTag=\\"[object Promise]\\",setTag$1=\\"[object Set]\\",weakMapTag$1=\\"[object WeakMap]\\";var dataViewTag$1=\\"[object DataView]\\";var dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set),weakMapCtorString=toSource(WeakMap);var getTag=baseGetTag;if(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag$1||Map&&getTag(new Map)!=mapTag$1||Promise$1&&getTag(Promise$1.resolve())!=promiseTag||Set&&getTag(new Set)!=setTag$1||WeakMap&&getTag(new WeakMap)!=weakMapTag$1){getTag=function(e){var r=baseGetTag(e),t=r==objectTag$1?e.constructor:undefined,i=t?toSource(t):\\"\\";if(i){switch(i){case dataViewCtorString:return dataViewTag$1;case mapCtorString:return mapTag$1;case promiseCtorString:return promiseTag;case setCtorString:return setTag$1;case weakMapCtorString:return weakMapTag$1}}return r}}var getTag$1=getTag;var Uint8Array$1=root.Uint8Array;var HASH_UNDEFINED$2=\\"__lodash_hash_undefined__\\";function setCacheAdd(e){this.ng.set(e,HASH_UNDEFINED$2);return this}function setCacheHas(e){return this.ng.has(e)}function SetCache(e){var r=-1,t=e==null?0:e.length;this.ng=new MapCache;while(++r<t){this.add(e[r])}}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function arraySome(e,r){var t=-1,i=e==null?0:e.length;while(++t<i){if(r(e[t],t,e)){return true}}return false}function cacheHas(e,r){return e.has(r)}var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function equalArrays(e,r,t,i,a,n){var o=t&COMPARE_PARTIAL_FLAG,f=e.length,s=r.length;if(f!=s&&!(o&&s>f)){return false}var u=n.get(e);var l=n.get(r);if(u&&l){return u==r&&l==e}var v=-1,c=true,h=t&COMPARE_UNORDERED_FLAG?new SetCache:undefined;n.set(e,r);n.set(r,e);while(++v<f){var d=e[v],_=r[v];if(i){var g=o?i(_,d,v,r,e,n):i(d,_,v,e,r,n)}if(g!==undefined){if(g){continue}c=false;break}if(h){if(!arraySome(r,function(e,r){if(!cacheHas(h,r)&&(d===e||a(d,e,t,i,n))){return h.push(r)}})){c=false;break}}else if(!(d===_||a(d,_,t,i,n))){c=false;break}}n[\\"delete\\"](e);n[\\"delete\\"](r);return c}function mapToArray(e){var t=-1,i=Array(e.size);e.forEach(function(e,r){i[++t]=[r,e]});return i}function setToArray(e){var r=-1,t=Array(e.size);e.forEach(function(e){t[++r]=e});return t}var COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;var boolTag$1=\\"[object Boolean]\\",dateTag$1=\\"[object Date]\\",errorTag$1=\\"[object Error]\\",mapTag$2=\\"[object Map]\\",numberTag$1=\\"[object Number]\\",regexpTag$1=\\"[object RegExp]\\",setTag$2=\\"[object Set]\\",stringTag$1=\\"[object String]\\",symbolTag$1=\\"[object Symbol]\\";var arrayBufferTag$1=\\"[object ArrayBuffer]\\",dataViewTag$2=\\"[object DataView]\\";var symbolProto$1=Symbol?Symbol.prototype:undefined,symbolValueOf=symbolProto$1?symbolProto$1.valueOf:undefined;function equalByTag(e,r,t,i,a,n,o){switch(t){case dataViewTag$2:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset){return false}e=e.buffer;r=r.buffer;case arrayBufferTag$1:if(e.byteLength!=r.byteLength||!n(new Uint8Array$1(e),new Uint8Array$1(r))){return false}return true;case boolTag$1:case dateTag$1:case numberTag$1:return eq(+e,+r);case errorTag$1:return e.name==r.name&&e.message==r.message;case regexpTag$1:case stringTag$1:return e==r+\\"\\";case mapTag$2:var f=mapToArray;case setTag$2:var s=i&COMPARE_PARTIAL_FLAG$1;f||(f=setToArray);if(e.size!=r.size&&!s){return false}var u=o.get(e);if(u){return u==r}i|=COMPARE_UNORDERED_FLAG$1;o.set(e,r);var l=equalArrays(f(e),f(r),i,a,n,o);o[\\"delete\\"](e);return l;case symbolTag$1:if(symbolValueOf){return symbolValueOf.call(e)==symbolValueOf.call(r)}}return false}var COMPARE_PARTIAL_FLAG$2=1;var objectProto$c=Object.prototype;var hasOwnProperty$9=objectProto$c.hasOwnProperty;function equalObjects(e,r,t,i,a,n){var o=t&COMPARE_PARTIAL_FLAG$2,f=getAllKeys(e),s=f.length,u=getAllKeys(r),l=u.length;if(s!=l&&!o){return false}var v=s;while(v--){var c=f[v];if(!(o?c in r:hasOwnProperty$9.call(r,c))){return false}}var h=n.get(e);var d=n.get(r);if(h&&d){return h==r&&d==e}var _=true;n.set(e,r);n.set(r,e);var g=o;while(++v<s){c=f[v];var y=e[c],m=r[c];if(i){var p=o?i(m,y,c,r,e,n):i(y,m,c,e,r,n)}if(!(p===undefined?y===m||a(y,m,t,i,n):p)){_=false;break}g||(g=c==\\"constructor\\")}if(_&&!g){var b=e.constructor,x=r.constructor;if(b!=x&&(\\"constructor\\"in e&&\\"constructor\\"in r)&&!(typeof b==\\"function\\"&&b instanceof b&&typeof x==\\"function\\"&&x instanceof x)){_=false}}n[\\"delete\\"](e);n[\\"delete\\"](r);return _}var COMPARE_PARTIAL_FLAG$3=1;var argsTag$2=\\"[object Arguments]\\",arrayTag$1=\\"[object Array]\\",objectTag$2=\\"[object Object]\\";var objectProto$d=Object.prototype;var hasOwnProperty$a=objectProto$d.hasOwnProperty;function baseIsEqualDeep(e,r,t,i,a,n){var o=isArray(e),f=isArray(r),s=o?arrayTag$1:getTag$1(e),u=f?arrayTag$1:getTag$1(r);s=s==argsTag$2?objectTag$2:s;u=u==argsTag$2?objectTag$2:u;var l=s==objectTag$2,v=u==objectTag$2,c=s==u;if(c&&isBuffer(e)){if(!isBuffer(r)){return false}o=true;l=false}if(c&&!l){n||(n=new Stack);return o||isTypedArray(e)?equalArrays(e,r,t,i,a,n):equalByTag(e,r,s,t,i,a,n)}if(!(t&COMPARE_PARTIAL_FLAG$3)){var h=l&&hasOwnProperty$a.call(e,\\"__wrapped__\\"),d=v&&hasOwnProperty$a.call(r,\\"__wrapped__\\");if(h||d){var _=h?e.value():e,g=d?r.value():r;n||(n=new Stack);return a(_,g,t,i,n)}}if(!c){return false}n||(n=new Stack);return equalObjects(e,r,t,i,a,n)}function baseIsEqual(e,r,t,i,a){if(e===r){return true}if(e==null||r==null||!isObjectLike(e)&&!isObjectLike(r)){return e!==e&&r!==r}return baseIsEqualDeep(e,r,t,i,baseIsEqual,a)}var COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2;function baseIsMatch(e,r,t,i){var a=t.length,n=a,o=!i;if(e==null){return!n}e=Object(e);while(a--){var f=t[a];if(o&&f[2]?f[1]!==e[f[0]]:!(f[0]in e)){return false}}while(++a<n){f=t[a];var s=f[0],u=e[s],l=f[1];if(o&&f[2]){if(u===undefined&&!(s in e)){return false}}else{var v=new Stack;if(i){var c=i(u,l,s,e,r,v)}if(!(c===undefined?baseIsEqual(l,u,COMPARE_PARTIAL_FLAG$4|COMPARE_UNORDERED_FLAG$2,i,v):c)){return false}}}return true}function isStrictComparable(e){return e===e&&!isObject(e)}function getMatchData(e){var r=keys(e),t=r.length;while(t--){var i=r[t],a=e[i];r[t]=[i,a,isStrictComparable(a)]}return r}function matchesStrictComparable(r,t){return function(e){if(e==null){return false}return e[r]===t&&(t!==undefined||r in Object(e))}}function baseMatches(r){var t=getMatchData(r);if(t.length==1&&t[0][2]){return matchesStrictComparable(t[0][0],t[0][1])}return function(e){return e===r||baseIsMatch(e,r,t)}}function baseHasIn(e,r){return e!=null&&r in Object(e)}function hasPath(e,r,t){r=castPath(r,e);var i=-1,a=r.length,n=false;while(++i<a){var o=toKey(r[i]);if(!(n=e!=null&&t(e,o))){break}e=e[o]}if(n||++i!=a){return n}a=e==null?0:e.length;return!!a&&isLength(a)&&isIndex(o,a)&&(isArray(e)||isArguments(e))}function hasIn(e,r){return e!=null&&hasPath(e,r,baseHasIn)}var COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function baseMatchesProperty(t,i){if(isKey(t)&&isStrictComparable(i)){return matchesStrictComparable(toKey(t),i)}return function(e){var r=get(e,t);return r===undefined&&r===i?hasIn(e,t):baseIsEqual(i,r,COMPARE_PARTIAL_FLAG$5|COMPARE_UNORDERED_FLAG$3)}}function baseProperty(r){return function(e){return e==null?undefined:e[r]}}function basePropertyDeep(r){return function(e){return baseGet(e,r)}}function property(e){return isKey(e)?baseProperty(toKey(e)):basePropertyDeep(e)}function baseIteratee(e){if(typeof e==\\"function\\"){return e}if(e==null){return identity}if(typeof e==\\"object\\"){return isArray(e)?baseMatchesProperty(e[0],e[1]):baseMatches(e)}return property(e)}function createBaseFor(s){return function(e,r,t){var i=-1,a=Object(e),n=t(e),o=n.length;while(o--){var f=n[s?o:++i];if(r(a[f],f,a)===false){break}}return e}}var baseFor=createBaseFor();function baseForOwn(e,r){return e&&baseFor(e,r,keys)}function createBaseEach(n,o){return function(e,r){if(e==null){return e}if(!isArrayLike(e)){return n(e,r)}var t=e.length,i=o?t:-1,a=Object(e);while(o?i--:++i<t){if(r(a[i],i,a)===false){break}}return e}}var baseEach=createBaseEach(baseForOwn);function castFunction(e){return typeof e==\\"function\\"?e:identity}function forEach(e,r){var t=isArray(e)?arrayEach:baseEach;return t(e,castFunction(r))}function arrayEvery(e,r){var t=-1,i=e==null?0:e.length;while(++t<i){if(!r(e[t],t,e)){return false}}return true}function baseEvery(e,i){var a=true;baseEach(e,function(e,r,t){a=!!i(e,r,t);return a});return a}function every(e,r,t){var i=isArray(e)?arrayEvery:baseEvery;if(t&&isIterateeCall(e,r,t)){r=undefined}return i(e,baseIteratee(r))}function createFind(o){return function(e,r,t){var i=Object(e);if(!isArrayLike(e)){var a=baseIteratee(r);e=keys(e);r=function(e){return a(i[e],e,i)}}var n=o(e,r,t);return n>-1?i[a?e[n]:n]:undefined}}var nativeMax$1=Math.max;function findIndex(e,r,t){var i=e==null?0:e.length;if(!i){return-1}var a=t==null?0:toInteger(t);if(a<0){a=nativeMax$1(i+a,0)}return baseFindIndex(e,baseIteratee(r),a)}var find=createFind(findIndex);function baseMap(e,i){var a=-1,n=isArrayLike(e)?Array(e.length):[];baseEach(e,function(e,r,t){n[++a]=i(e,r,t)});return n}function map(e,r){var t=isArray(e)?arrayMap:baseMap;return t(e,baseIteratee(r))}function isEqual(e,r){return baseIsEqual(e,r)}function isUndefined(e){return e===undefined}function baseSome(e,i){var a;baseEach(e,function(e,r,t){a=i(e,r,t);return!a});return!!a}function some(e,r,t){var i=isArray(e)?arraySome:baseSome;if(t&&isIterateeCall(e,r,t)){r=undefined}return i(e,baseIteratee(r))}var LocalZoom=13;var zoomRange=[2,26];var CONSTS={ID:\\"__id__\\",Rp:zoomRange[1],Mp:zoomRange[0],jp:.8,Pp:.2,YM:5,KM:{dom:\\"div\\",id:\\"_amap_custom_labellayer_div_\\",className:\\"amap-layer\\",style:{cssText:\\"position:absolute;top:0;left:0;\\",zIndex:\\"\\",width:\\"\\",height:\\"\\",visible:\\"\\"}},Dp:{Op:180,Ad:70,Td:360,t1:300,e1:30,Bd:Math.PI/10},XM:{top:3,right:3,bottom:3,left:3},JM:{ZM:\\"top\\",QM:\\"right\\",tj:\\"bottom\\",LEFT:\\"left\\",nj:\\"middle\\",ij:\\"center\\",ej:\\"alphabetic\\"},oj:{CLICK:\\"click\\",MOUSEOVER:\\"mouseover\\",MOUSEOUT:\\"mouseout\\",MOUSEMOVE:\\"mousemove\\",MOUSEDOWN:\\"mousedown\\",MOUSEUP:\\"mouseup\\",aj:\\"touchstart\\",uj:\\"touchend\\"},sj:{rank:1,angle:0,opacity:1,offset:[0,0],zooms:zoomRange,icon:{type:\\"image\\",image:\\"://visuallocal.amap.com/public/poi-marker.png\\",clipOrigin:[0,0],clipSize:[36,36],size:[36,36],anchor:\\"bottom-center\\",angel:0,qq:true,zooms:zoomRange},text:{type:\\"billboard\\",direction:\\"top\\",offset:[0,0],zooms:zoomRange,style:{fj:6,fontFamily:\\"sans-serif\\",fontSize:12,fontWeight:\\"normal\\",fillColor:[0,0,0,1],strokeWidth:0,strokeColor:[.988,.988,.988,1],borderColor:\\"transparent\\",padding:[3,3,3,3],backgroundColor:\\"\\"}}},hj:{cj:{opacity:.2},vj:\\"fadeIn\\",lj:\\"fadeOut\\",dj:{bj:\\"start\\",RUNNING:\\"running\\",pj:\\"complete\\"},yj:{mj:\\"opacity\\",gj:\\"size\\"}},_d:3,wj:\\"_AMap_sdf_com_words\\",Mj:128,pc:[\\"://sdf.amap.com\\",\\"://sdf01.amap.com\\",\\"://sdf02.amap.com\\",\\"://sdf03.amap.com\\",\\"://sdf04.amap.com\\"],sp:4,Cd:200/256,Ld:205/256,Aj:{kj:\\"纹理加载失败，请重试\\",Oj:\\"资源加载失败，请重试\\"},xj:\\"bufferChanged\\",Ij:\\"frameBufferChanged\\",Tj:\\"combineFrameBufferChanged\\",ic:1,ud:13,Cj:12,Ej:\\"__icon_combination\\",Nj:\\"__text_combination\\",Lj:{file:{0:\\"://vdata.amap.com/style_icon/2.0/icon-normal-big.png\\",1:\\"://vdata.amap.com/style_icon/2.0/icon-biz-big.png\\"},size:[40,40],Rj:10},Kp:{buffer:3,family:\\"ios9\\",size:24},Color:{Uj:[0,0,0,1],Gp:[0,0,0,0]},gH:\\"sdf\\",RB:\\"sdfJson\\",FN:\\"version\\"};var StaticSourceID;(function(e){e[\\"nebula\\"]=\\"nebula\\";e[\\"nebulaLabel\\"]=\\"nebulaLabel\\"})(StaticSourceID||(StaticSourceID={}));var DangerousFontSize=24;var EnumTextureIndex;(function(e){e[e[\\"dynamic\\"]=0]=\\"dynamic\\";e[e[\\"icon\\"]=1]=\\"icon\\"})(EnumTextureIndex||(EnumTextureIndex={}));var TextureMaxLength=2;var ImageStatus;(function(e){e[\\"BLOB\\"]=\\"blob\\";e[\\"TOLOAD\\"]=\\"toload\\";e[\\"LOADING\\"]=\\"loading\\";e[\\"LOADED\\"]=\\"loaded\\";e[\\"UNLOADED\\"]=\\"unloaded\\";e[\\"ERROR\\"]=\\"error\\";e[\\"RELOADING\\"]=\\"reloading\\";e[\\"UNCOMBINED\\"]=\\"uncombined\\";e[\\"COMBINING\\"]=\\"combining\\";e[\\"COMBINED\\"]=\\"combined\\"})(ImageStatus||(ImageStatus={}));var ColorMode=function(){function e(e,r){this.Ci=e;this.mask=r}e.wi={ZERO:0,ONE:1,SRC_ALPHA:770,ONE_MINUS_SRC_ALPHA:771};e.tH=[true,true,true,true];e.iH=[false,false,false,false];e.disabled=new e([e.wi.ONE,e.wi.ZERO,e.wi.ONE,e.wi.ZERO],e.iH);e.Mi=new e([e.wi.ONE,e.wi.ZERO,e.wi.ONE,e.wi.ZERO],e.tH);e.Ri=new e([e.wi.SRC_ALPHA,e.wi.ONE_MINUS_SRC_ALPHA,e.wi.SRC_ALPHA,e.wi.ONE_MINUS_SRC_ALPHA],e.tH);e.zi=new e([e.wi.ONE,e.wi.ONE_MINUS_SRC_ALPHA,e.wi.ONE,e.wi.ONE_MINUS_SRC_ALPHA],e.tH);e.Si=new e([e.wi.SRC_ALPHA,e.wi.ONE_MINUS_SRC_ALPHA,e.wi.ONE,e.wi.ONE_MINUS_SRC_ALPHA],e.tH);e.eee=new e([e.wi.SRC_ALPHA,e.wi.ONE_MINUS_SRC_ALPHA,e.wi.ONE,e.wi.ZERO],e.tH);return e}();var StencilMode=function(){function e(e,r,t){this.stencilFunc=e;this.stencilOp=r;this.stencilMask=t}e.wi={NOTEQUAL:517,ALWAYS:519,EQUAL:514,GEQUAL:518,GREATER:516,LESS:513,NEVER:512,KEEP:7680,REPLACE:7681,ZERO:0,INCR_WRAP:34055,INCR:7682,DECR:7683};e.disable=new e({test:e.wi.ALWAYS,Li:0,mask:0},[e.wi.KEEP,e.wi.KEEP,e.wi.KEEP],0);e.Ai=new e({test:e.wi.ALWAYS,Li:254,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.REPLACE],255);e.writeWithStencil=new e({test:e.wi.LESS,Li:240,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.KEEP],255);e.nH=new e({test:e.wi.EQUAL,Li:0,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.KEEP],255);e.$H=new e({test:e.wi.EQUAL,Li:0,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.INCR_WRAP],255);e.DH=new e({test:e.wi.EQUAL,Li:254,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.KEEP],255);e.FH=new e({test:e.wi.EQUAL,Li:254,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.DECR],255);e.PH=new e({test:e.wi.ALWAYS,Li:255,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.INCR],255);e.HH=new e({test:e.wi.NOTEQUAL,Li:1,mask:1},[e.wi.KEEP,e.wi.KEEP,e.wi.KEEP],255);e.js=new e({test:e.wi.NOTEQUAL,Li:1,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.KEEP],255);e.nbStencil=new e({test:e.wi.EQUAL,Li:254,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.KEEP],255);e.outseaStencil=new e({test:e.wi.ALWAYS,Li:254,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.REPLACE],255);e.TE=new e({test:e.wi.EQUAL,Li:0,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.INCR],255);e.FE=new e({test:e.wi.EQUAL,Li:1,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.ZERO],255);e.test=new e({test:e.wi.NOTEQUAL,Li:254,mask:255},[e.wi.ZERO,e.wi.ZERO,e.wi.INCR],255);e.HE=new e({test:e.wi.EQUAL,Li:1,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.KEEP],0);e.ree=new e({test:e.wi.EQUAL,Li:0,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.INCR_WRAP],255);e.iee=new e({test:e.wi.EQUAL,Li:1,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.KEEP],255);e.aee=new e({test:e.wi.EQUAL,Li:1,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.INCR_WRAP],255);e.nee=new e({test:e.wi.NOTEQUAL,Li:254,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.REPLACE],255);return e}();var globalInstance=typeof self===undefined?window:self;var assert=function(e){var r=[];for(var t=1;t<arguments.length;t++){r[t-1]=arguments[t]}if(!Boolean(e)){console.log.apply(console,r)}};var URLObject=typeof window!==\\"undefined\\"?window.URL||window.webkitURL||{createObjectURL:function(){console.error(\\"URL not exist, please use more popular browser\\")}}:URL||webkitURL||{createObjectURL:function(){console.error(\\"URL not exist, please use more popular browser\\")}};var AbstractBaseValue=function(){function e(e){this.Oi=same;this.gl=e.gl;this.default=this.Fi();this.current=this.Fi();this.Pi=false}e.prototype.set=function(e){this.current=e};e.prototype.get=function(){return this.current};e.prototype.setDirty=function(){this.Pi=true};e.prototype.reset=function(){this.set(this.default)};e.prototype.ji=function(e){return this.Pi||!this.Oi(e,this.current)};return e}();var Blend=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Fi=function(){return false};r.prototype.set=function(e){if(!this.ji(e)){return}var r=this.gl;if(e){r.enable(r.BLEND)}else{r.disable(r.BLEND)}this.current=e;this.Pi=false};return r}(AbstractBaseValue);var Viewport=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Fi=function(){var e=this.gl;return[0,0,e.drawingBufferWidth,e.drawingBufferHeight]};r.prototype.set=function(e){var r=this.current;if(e[0]===r[0]&&e[1]===r[1]&&e[2]===r[2]&&e[3]===r[3]&&!this.Pi){return}this.gl.viewport(e[0],e[1],e[2],e[3]);this.current=e;this.Pi=false};return r}(AbstractBaseValue);var DepthTest=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Fi=function(){return false};r.prototype.set=function(e){if(!this.ji(e)){return}var r=this.gl;if(e){r.enable(r.DEPTH_TEST);r.depthFunc(r.LEQUAL)}else{r.disable(r.DEPTH_TEST)}this.current=e;this.Pi=false};return r}(AbstractBaseValue);var DepthFunc=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Fi=function(){return{test:this.gl.DEPTH_TEST,oee:this.gl.LESS}};r.prototype.set=function(e){if(!this.ji(e)){return}this.gl.depthFunc(e.oee);this.current=e;this.Pi=false};return r}(AbstractBaseValue);var StencilTest=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Fi=function(){return false};r.prototype.set=function(e){if(!this.ji(e)){return}var r=this.gl;if(e){r.enable(r.STENCIL_TEST)}else{r.disable(r.STENCIL_TEST)}this.current=e;this.Pi=false};return r}(AbstractBaseValue);var StencilFunc=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Fi=function(){return{test:this.gl.ALWAYS,Li:1,mask:65535}};r.prototype.set=function(e){if(!this.ji(e)){return}this.gl.stencilFunc(e.test,e.Li,e.mask);this.current=e;this.Pi=false};return r}(AbstractBaseValue);var StencilOp=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Fi=function(){var e=this.gl;return[e.KEEP,e.KEEP,e.KEEP]};r.prototype.set=function(e){var r;if(!this.ji(e)){return}(r=this.gl).stencilOp.apply(r,e);this.current=e;this.Pi=false};return r}(AbstractBaseValue);var CullFace=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Fi=function(){return false};r.prototype.set=function(e){if(!this.ji(e)){return}var r=this.gl;if(e){r.enable(r.CULL_FACE)}else{r.disable(r.CULL_FACE)}this.current=e;this.Pi=false};return r}(AbstractBaseValue);var BlendFunc=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Fi=function(){return[this.gl.ONE,this.gl.ZERO]};r.prototype.set=function(e){if(!this.ji(e)){return}this.gl.blendFunc(e[0],e[1]);this.current=e;this.Pi=false};return r}(AbstractBaseValue);var BlendFuncSeparate=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Fi=function(){var e=this.gl.ONE;var r=this.gl.ZERO;return[e,r,e,r]};r.prototype.set=function(e){var r;if(!this.ji(e)){return}(r=this.gl).blendFuncSeparate.apply(r,e);this.current=e;this.Pi=false};return r}(AbstractBaseValue);var BlendEquation=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Fi=function(){return this.gl.FUNC_ADD};r.prototype.set=function(e){if(!this.ji(e)){return}this.gl.blendEquation(e);this.current=e;this.Pi=false};return r}(AbstractBaseValue);var BlendEquationSeparate=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Fi=function(){return[this.gl.FUNC_ADD,this.gl.FUNC_ADD]};r.prototype.set=function(e){var r;if(!this.ji(e)){return}(r=this.gl).blendEquationSeparate.apply(r,e);this.current=e;this.Pi=false};return r}(AbstractBaseValue);var CullFaceSide=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Fi=function(){var e=this.gl;return e.BACK};r.prototype.set=function(e){if(!this.ji(e)){return}this.gl.cullFace(e);this.current=e;this.Pi=false};return r}(AbstractBaseValue);var FrontFace=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Fi=function(){return this.gl.CCW};r.prototype.set=function(e){if(!this.ji(e)&&!this.Pi){return}this.gl.frontFace(e);this.current=e;this.Pi=false};return r}(AbstractBaseValue);var DepthClear=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Fi=function(){return 1};r.prototype.set=function(e){if(!this.ji(e)){return}this.gl.clearDepth(e);this.current=e;this.Pi=false};return r}(AbstractBaseValue);var ColorClear=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Fi=function(){return[0,0,0,0]};r.prototype.set=function(e){var r;if(!this.ji(e)){return}(r=this.gl).clearColor.apply(r,e);this.current=e;this.Pi=false};return r}(AbstractBaseValue);var StencilClear=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Fi=function(){return 0};r.prototype.set=function(e){if(!this.ji(e)){return}this.gl.clearStencil(e);this.current=e;this.Pi=false};return r}(AbstractBaseValue);var ColorMask=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Fi=function(){return[true,true,true,true]};r.prototype.set=function(e){var r;if(!this.ji(e)){return}(r=this.gl).colorMask.apply(r,e);this.current=e;this.Pi=false};return r}(AbstractBaseValue);var DepthMask=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Fi=function(){return true};r.prototype.set=function(e){if(!this.ji(e)){return}this.gl.depthMask(e);this.current=e;this.Pi=false};return r}(AbstractBaseValue);var StencilMask=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Fi=function(){return 65535};r.prototype.set=function(e){if(!this.ji(e)){return}this.gl.stencilMask(e);this.current=e;this.Pi=false};return r}(AbstractBaseValue);var BindFramebuffer=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Fi=function(){return null};r.prototype.set=function(e){if(!this.ji(e)){return}var r=this.gl;r.bindFramebuffer(r.FRAMEBUFFER,e);this.current=e;this.Pi=false};return r}(AbstractBaseValue);var BindProgram=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Fi=function(){return null};r.prototype.set=function(e){if(!this.ji(e)){return}if(this.current&&this.current!==e){this.current.Ni()}if(e){this.gl.useProgram(e.$i)}else{this.gl.useProgram(null)}this.current=e;this.Pi=false};return r}(AbstractBaseValue);var ActiveTextureUnit=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Fi=function(){return this.gl.TEXTURE0};r.prototype.set=function(e){if(!this.ji(e)){return}this.gl.activeTexture(this.gl.TEXTURE0+e);this.current=e;this.Pi=false};return r}(AbstractBaseValue);var BindTexture=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Fi=function(){return null};r.prototype.set=function(e){if(!this.ji(e)){return}var r=this.gl;r.bindTexture(r.TEXTURE_2D,e);this.current=e;this.Pi=false};return r}(AbstractBaseValue);var AbstractFramebufferAttachment=function(i){__extends(e,i);function e(e,r){var t=i.call(this,e)||this;t.context=e;t.parent=r;return t}return e}(AbstractBaseValue);var ColorAttachment=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.set=function(e){if(!this.Pi&&!this.ji(e)){return}var r=this.gl;var t=this.context.bindFramebuffer.current;this.context.bindFramebuffer.set(this.parent.framebuffer);r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,e,0);this.context.bindFramebuffer.set(t);this.current=e};r.prototype.Bi=function(){var e=this.current;var r=this.gl;if(e){r.deleteTexture(e);this.current=null}};r.prototype.Fi=function(){return null};return r}(AbstractFramebufferAttachment);var DepthAttachment=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.set=function(e){if(!this.Pi&&!this.ji(e)){return}var r=this.gl;this.context.bindFramebuffer.set(this.parent.framebuffer);r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_ATTACHMENT,r.RENDERBUFFER,e);this.current=e};r.prototype.Bi=function(){var e=this.current;var r=this.gl;if(e){r.deleteRenderbuffer(e);this.current=null}};r.prototype.Fi=function(){return null};return r}(AbstractFramebufferAttachment);var BindArrayBuffer=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Fi=function(){return null};r.prototype.set=function(e){if(e&&e.xe){assert(true,\\"WebGLBuffer deleted\\")}if(!this.ji(e)){return}this.gl.bindBuffer(this.gl.ARRAY_BUFFER,e);this.current=e;this.Pi=false};return r}(AbstractBaseValue);var BindElementArrayBuffer=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Fi=function(){return null};r.prototype.set=function(e){if(!this.ji(e)){return}this.gl.bindBuffer(this.gl.ELEMENT_ARRAY_BUFFER,e);this.current=e;this.Pi=false};return r}(AbstractBaseValue);var UnpackFlipYWebgl=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Fi=function(){return false};r.prototype.set=function(e){if(!this.ji(e)){return}this.gl.pixelStorei(this.gl.UNPACK_FLIP_Y_WEBGL,e);this.current=e;this.Pi=false};return r}(AbstractBaseValue);var Framebuffer=function(){function e(e,r,t){this.context=e;this.width=r;this.height=t;var i=e.gl;var a=i.createFramebuffer();if(!a){throw Error(\\"createFramebuffer error\\")}this.framebuffer=a;this.Wi=new ColorAttachment(e,this);this.Gi=new DepthAttachment(e,this)}e.prototype.resize=function(e,r){this.Wi.Bi();this.Gi.Bi();this.width=e;this.height=r};e.prototype.destroy=function(){var e=this.context.gl;this.Wi.Bi();this.Gi.Bi();e.deleteFramebuffer(this.framebuffer)};e.prototype.get=function(){return this.framebuffer};return e}();var UglyBrowser=M[\\"Support\\"];var Texture=function(){function e(e,r,t){this.context=e;this.texture=e.gl.createTexture();this.update(r,t)}e.prototype.update=function(e,r,t){var i=e.width,a=e.height;var n=r&&r.resize||(!this.size||this.size[0]!==i||this.size[1]!==a)&&!t;var o=this.context.gl;var f=r&&r.format||o.RGBA;this.Zi=Boolean(r&&r.Zi);o.bindTexture(o.TEXTURE_2D,this.texture);if(r&&r.Yi){o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,1)}if(r&&r.flipY){this.context.hB.set(true)}else{this.context.hB.set(false)}if(n){this.size=[i,a];if(e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement||e instanceof ImageData||UglyBrowser.imageBitmap&&e instanceof ImageBitmap){o.texImage2D(o.TEXTURE_2D,0,o.RGBA,o.RGBA,o.UNSIGNED_BYTE,e)}else{o.texImage2D(o.TEXTURE_2D,0,f,i,a,0,f,o.UNSIGNED_BYTE,e.data)}}else{var s=t||{x:0,y:0},u=s.x,l=s.y;if(e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement||e instanceof ImageData||UglyBrowser.imageBitmap&&e instanceof ImageBitmap){o.texSubImage2D(o.TEXTURE_2D,0,u,l,o.RGBA,o.UNSIGNED_BYTE,e)}else{o.texSubImage2D(o.TEXTURE_2D,0,u,l,i,a,f,o.UNSIGNED_BYTE,e.data)}}if(this.Zi&&this.Vi()){o.generateMipmap(o.TEXTURE_2D)}if(r&&r.Yi){o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,0)}o.bindTexture(o.TEXTURE_2D,null)};e.prototype.generateMipmap=function(){if(this.Vi()){var e=this.context.gl;e.bindTexture(e.TEXTURE_2D,this.texture);e.generateMipmap(e.TEXTURE_2D);e.bindTexture(e.TEXTURE_2D,null)}else{console.log(\\"generateMipmap error\\")}};e.prototype.bind=function(e,r,t){var i=this.context.gl;i.bindTexture(i.TEXTURE_2D,this.texture);if(r&&r!==this.Xi){i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,r);this.Xi=r}if(t&&t!==this.Hi){i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,t);this.Hi=t}if(e&&e!==this.wrap){i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,e);i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,e);this.wrap=e}};e.prototype.Vi=function(){return Math.log(this.size[0])/Math.LN2%1===0&&Math.log(this.size[1])/Math.LN2%1===0};e.prototype.destroy=function(){var e=this.context.gl;e.deleteTexture(this.texture);this.texture=null};e.prototype.get=function(){return this.texture};return e}();function diffArray(e,r){if(e===r){return false}if(e.length!==r.length){return true}for(var t=0,i=e.length;t<i;t++){if(e[t]!==r[t]){return true}}return false}function diffType(e,r){if(typeof e!==typeof r){return true}if(typeof e===\\"object\\"){return Array.isArray(e)!==Array.isArray(r)}return false}function fastDiff(e,r){return e!==r}function diff(e,r){if(diffType(e,r)){return true}switch(typeof e){case\\"boolean\\":case\\"number\\":case\\"string\\":return fastDiff(e,r);case\\"object\\":return Array.isArray(e)?diffArray(e,r):fastDiff(e,r);default:return true}}function same(e,r){return!diff(e,r)}var Context=function(){function e(e){this.te=same;this.gl=e;this.Z_=this.gl.getSupportedExtensions();this.extensions={};this.be=new Viewport(this);this.ie=new Blend(this);this.ee=new BlendFuncSeparate(this);this.blendEquation=new BlendEquation(this);this.cullFace=new CullFace(this);this.he=new CullFaceSide(this);this.frontFace=new FrontFace(this);this.depthTest=new DepthTest(this);this.depthFunc=new DepthFunc(this);this.se=new StencilTest(this);this.stencilFunc=new StencilFunc(this);this.stencilOp=new StencilOp(this);this.stencilMask=new StencilMask(this);this.le=new StencilClear(this);this.ue=new ColorClear(this);this.ce=new DepthClear(this);this.bindFramebuffer=new BindFramebuffer(this);this.ge=new BindProgram(this);this.bindTexture=new BindTexture(this);this.activeTexture=new ActiveTextureUnit(this);this.de=new BindArrayBuffer(this);this.me=new BindElementArrayBuffer(this);this.colorMask=new ColorMask(this);this.depthMask=new DepthMask(this);this.ye={};this.hB=new UnpackFlipYWebgl(this)}e.prototype.clear=function(e){var r=0;var t=this.gl;if(e.color){r=r|t.COLOR_BUFFER_BIT}if(e.depth){r=r|t.DEPTH_BUFFER_BIT}if(e.stencil){r=r|t.STENCIL_BUFFER_BIT}if(r!==0){t.clear(r)}};e.prototype.Qi=function(e){if(this.te(e,ColorMode.Mi)){this.ie.set(false);this.colorMask.set(ColorMode.tH)}else if(this.te(e,ColorMode.disabled)){this.colorMask.set(ColorMode.iH)}else{this.ie.set(true);this.ee.set(e.Ci);this.colorMask.set(e.mask)}};e.prototype.ne=function(e){this.depthTest.set(e)};e.prototype.ae=function(e){if(this.te(e.stencilFunc.test,StencilMode.wi.ALWAYS)&&!e.stencilMask){this.se.set(false)}else{this.se.set(true);this.stencilFunc.set(e.stencilFunc);this.stencilOp.set(e.stencilOp);this.stencilMask.set(e.stencilMask)}};e.prototype.re=function(e){if(!e.enable){this.cullFace.set(false)}else{this.cullFace.set(e.enable);this.he.set(e.mode);this.frontFace.set(e.frontFace)}};e.prototype.reset=function(){this.ie.reset();this.ee.reset();this.blendEquation.reset();this.cullFace.reset();this.he.reset();this.frontFace.reset();this.depthTest.reset();this.se.reset();this.stencilFunc.reset();this.stencilOp.reset();this.stencilMask.reset();this.le.reset();this.ue.reset();this.ce.reset();this.bindFramebuffer.set(null)};e.prototype.createFramebuffer=function(e,r){return new Framebuffer(this,e,r)};e.prototype.createRenderbuffer=function(e,r){var t=this.gl;var i=t.createRenderbuffer();t.bindRenderbuffer(t.RENDERBUFFER,i);t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_COMPONENT16,e,r);if(!i){throw Error(\\"bindRenderbuffer error\\")}return i};e.prototype.createTexture=function(e,r){return new Texture(this,e,r)};e.prototype.fe=function(e,r,t){if(t===void 0){t=\\"STATIC_DRAW\\"}var i=this.gl;var a=i.createBuffer();if(!a){throw Error(\\"createBuffer error\\")}a.context=this;a.size=r;a.length=e.byteLength/r;var n=this.de.current;this.de.set(a);i.bufferData(i.ARRAY_BUFFER,e,i[t]);this.de.set(n);return a};e.prototype.ve=function(e){var r=this.gl;var t=r.createBuffer();if(!t){throw Error(\\"createBuffer error\\")}t.context=this;t.length=e.length;t.type=\\"int\\";t.G_=true;if(e instanceof Uint16Array){t.size=16}else{t.size=32}var i=this.me.current;this.me.set(t);r.bufferData(r.ELEMENT_ARRAY_BUFFER,e,r.STATIC_DRAW);this.me.set(i);return t};e.prototype.getSize=function(){return{width:this.gl.canvas.width,height:this.gl.canvas.height}};e.prototype.getParameter=function(e){if(!this.ye[e]){this.ye[e]=this.gl.getParameter(this.gl[e])}return this.ye[e]};e.prototype.deleteBuffer=function(e){this.de.set(null);this.me.set(null);this.gl.deleteBuffer(e);e.xe=true};e.prototype.getExtension=function(e){if(this.extensions[e]){return this.extensions[e]}if(!this.Z_){console.error(\\"WebGL: supportedExtension not exist\\");return}if(this.Z_.indexOf(e)<0){console.error(\\"WebGL: supportedExtension not exist \\"+e);return}if(!this.extensions[e]){this.extensions[e]=this.gl.getExtension(e);if(!this.extensions[e]){console.error(\\"WebGL: getExtension \\"+e+\\" failed\\")}}};e.prototype.setDirty=function(){this.ge.setDirty();this.bindTexture.setDirty();this.bindFramebuffer.setDirty();this.de.setDirty();this.me.setDirty();this.be.setDirty();this.activeTexture.setDirty();this.colorMask.setDirty();this.depthMask.setDirty();this.se.setDirty();this.le.setDirty();this.stencilMask.setDirty();this.stencilFunc.setDirty();this.stencilOp.setDirty();this.colorMask.setDirty();this.ie.setDirty();this.blendEquation.setDirty();this.ee.setDirty();this.depthTest.setDirty();this.cullFace.setDirty();this.he.setDirty();this.frontFace.setDirty();this.hB.setDirty()};return e}();var CullFaceMode=function(){function e(e,r,t){this.enable=e;this.mode=r;this.frontFace=t}e.wi={CW:2304,CCW:2305,FRONT:1028,BACK:1029,FRONT_AND_BACK:1032};e.we=new e(false,e.wi.FRONT_AND_BACK,e.wi.CW);e._e=new e(true,e.wi.FRONT,e.wi.CW);e.back=new e(true,e.wi.BACK,e.wi.CW);return e}();var Util=AMap[\\"Util\\"];var LayerRender=function(){function e(){this.hS=Util.stamp(this)}e.prototype.destroy=function(){};e.prototype.fH=function(e){var r=e.Ro;var t=e.localCoord.center;var i=[r[0]-t[0],r[1]-t[1]];var a=[r[0]-t[0],r[3]-t[1]];var n=[r[2]-t[0],r[1]-t[1]];var o=[r[2]-t[0],r[3]-t[1]];return __spreadArrays(i,n,a,n,o,a)};e.prototype.OH=function(e,r){if(e===void 0){e=false}if(!r){return StencilMode.nH}if(r&&!e){return StencilMode.DH}if(r&&e){return StencilMode.HH}};e.prototype.BH=function(e,r){if(e===void 0){e=false}if(!r){return StencilMode.$H}if(r&&!e){return StencilMode.FH}if(r&&e){return StencilMode.PH}};return e}();var Support=M[\\"Support\\"];var scale=Support.scale;var LabelsRender=function(){function e(){this.Lz={De:[],sizes:[]};this._f=null;this.CG=0}e.prototype.Mz=function(e){var r=e.map,t=e.R_,i=e.z_,a=e.$i;this._map=r;this.Mf=t;this.ac=i;this._f=a};e.prototype.Ce=function(e,r,t,i){if(t===void 0){t={}}var a=CONSTS.ud,n=CONSTS.sp;var o=this._f;var f=e.viewState,s=e.size;if(!f){return i.iterator}var O=f.mvpMatrix,B=f.zoom,D=f.viewMode;var u=s[0],l=s[1];var U=i.Sa,v=i.from,N=v===void 0?\\"inner\\":v,c=i.opacity,H=c===void 0?1:c,h=i.offset,z=h===void 0?[0,0]:h,G=i.Sz,d=i.LF,j=d===void 0?{}:d;var _=i.iterator;var g=1;if(D===\\"3D\\"){g=e.map.getView().EF()}var V=t.Rz,W=t.buffer,y=t.od,m=t.zz;r.bindFramebuffer.set(null);r.be.set([0,0,u*scale,l*scale]);var p=V.pp;var b=W;var x=this.fd(i.fee),C=x.De,M=C===void 0?[]:C,S=x.sizes,w=S===void 0?[]:S;var k=a*n;var T=p.length;if(!b||!y){return _}if(T){r.ge.set(o);o.Ae({a_vertex:{type:\\"vec2\\",buffer:b,Re:k,offset:0},a_texcoord:{type:\\"vec2\\",buffer:b,Re:k,offset:2*n},a_origin:{type:\\"vec2\\",buffer:b,Re:k,offset:4*n},a_texIndex:{type:\\"float\\",buffer:b,Re:k,offset:6*n},a_type:{type:\\"float\\",buffer:b,Re:k,offset:7*n},a_zooms:{type:\\"vec2\\",buffer:b,Re:k,offset:8*n},a_height:{type:\\"float\\",buffer:b,Re:k,offset:10*n},a_angle:{type:\\"float\\",buffer:b,Re:k,offset:11*n},a_highflag:{type:\\"float\\",buffer:b,Re:k,offset:12*n},a_visible:{type:\\"float\\",buffer:y,Re:0,offset:m[_]&&m[_].start}});var q=this.l_===\\"inner\\"?ColorMode.Ri:ColorMode.Si;for(var A=0;A<T;A++){var I=p[A];var $=I.start,F=$===void 0?0:$,P=I.end,Y=P===void 0?0:P,Z=I.dp;_++;if(!(Y-F)){continue}var L=void 0;if(N===\\"labelsLayer\\"&&I.pd){var K=this.ac.getImage(I.pd);if(K.img){var X=this.dd(r,K),E=X.texture,J=X.size;if(E&&E.context){M[EnumTextureIndex.icon]=E;L=w.slice(0);L[EnumTextureIndex.icon*2]=J[0];L[EnumTextureIndex.icon*2+1]=J[1]}}}var R=I.vd;var Q=R.GV(\\"fillColor\\");var ee=R.GV(\\"strokeColor\\");var re=R.GV(\\"backgroundColor\\");var te=R.GV(\\"borderColor\\");o.Le({u_matrix:O,u_texture:{De:M,count:4},u_gl_size:[u,l],u_texsize:L?L:w,u_color:Q,u_strokeColor:ee,u_borderColor:te,u_gamma:R.GV(\\"u_gamma\\"),u_borderBuffer:R.GV(\\"u_borderBuffer\\"),u_buffer:R.GV(\\"u_buffer\\"),u_backgroundColor:re,u_opacity:I.opacity*H,u_zoom:B,u_event:0,u_delta_center:U,u_offset:z,u_transform:[0,0,1,0],u_skyHeight:g,u_fontSizeFactor:R.GV(\\"u_fontSizeFactor\\"),u_highlightFillColor:R.GV(\\"u_highlightFillColor\\"),u_highlightStrokeColor:R.GV(\\"u_highlightStrokeColor\\")});o.Pe((Y-F)/a,F/a,undefined,undefined,j.depthTest,q)}}return _};e.prototype.Cz=function(e,r,t,i,a){var n=this._f;var o=CONSTS.sp,f=CONSTS.ud;var s=e.viewState,u=e.size;var l=s.zoom||zoomRange[1];var v=s.mvpMatrix||null;var O=u[0],B=u[1];var D=a.Az,c=a.Iz,U=a.centerCoord;var h=1;if(s.viewMode===\\"3D\\"){h=e.map.getView().EF()}if(!v){return}var d=i.$z||{};var _=d.pp,g=d.zs,y=d.od;var m=g&&g.buffer;var p=Math.pow(2,l-c);r.be.set([0,0,O*scale,B*scale]);var b=this.fd(a.fee),x=b.De,C=x===void 0?[]:x,M=b.sizes,N=M===void 0?[]:M;var S=_.length;var w=f*o;var H;var z;var k;var T;var A;var I;var G;var j=c>=l?p:1;var V=[0,0,j,0];if(!m||!y){return}if(S){r.ge.set(this._f);n.Ae({a_vertex:{type:\\"vec2\\",buffer:m,Re:w,offset:0},a_texcoord:{type:\\"vec2\\",buffer:m,Re:w,offset:2*o},a_origin:{type:\\"vec2\\",buffer:m,Re:w,offset:4*o},a_texIndex:{type:\\"float\\",buffer:m,Re:w,offset:6*o},a_type:{type:\\"float\\",buffer:m,Re:w,offset:7*o},a_zooms:{type:\\"vec2\\",buffer:m,Re:w,offset:8*o},a_height:{type:\\"float\\",buffer:m,Re:w,offset:10*o},a_angle:{type:\\"float\\",buffer:m,Re:w,offset:11*o},a_highflag:{type:\\"float\\",buffer:m,Re:w,offset:12*o},a_visible:{type:\\"float\\",buffer:y,Re:0,offset:0}})}var $;for(var F=0;F<S;F++){var P=_[F];H=P[0];z=P[1];k=P[11];T=P[12];A=P[13];G=P[14];if(!(T-k)){continue}for(var L=0,E=D;L<E.length;L++){var R=E[L];$=t[R];if($&&R===A){I=$.Sa}}if(!I||p<.6){continue}if(!$){continue}I=[0,0];n.Le({u_matrix:v,u_delta_center:I,u_transform:V,u_texture:{De:C,count:C.length},u_gl_size:u,u_texsize:N,u_color:P[3],u_strokeColor:P[4],u_gamma:P[5],u_borderBuffer:P[7],u_buffer:P[8],u_backgroundColor:P[9],u_opacity:1,u_zoom:l,u_event:0,u_skyHeight:h,u_fontSizeFactor:1});n.Pe((T-k)/f,k/f,undefined,undefined,undefined,ColorMode.Si)}};e.prototype.gp=function(e,r){var t=e.context;var i=e.Jn();var a=r;var n=t.fe(new Uint16Array([0,0,0,0,0,1,0,1,1,1,1,1,1,0,1,0]),8);if(!a){return}i.Ce({u_texture:a},{a_pos:{type:\\"vec2\\",buffer:n,Re:8,offset:0},a_coord:{type:\\"vec2\\",buffer:n,Re:8,offset:4}},4,undefined,\\"TRIANGLE_FAN\\",undefined,ColorMode.Mi)};e.prototype.reset=function(){this.Df()};e.prototype.destroy=function(){if(this.Lz){for(var e=0,r=this.Lz.De;e<r.length;e++){var t=r[e];t.destroy()}delete this.Lz}};e.prototype.Dz=function(e,r,t){var i=t.start,a=i===void 0?0:i,n=t.dp,o=t.style;var f=6;var s=a;var u=0;var l;var v;for(var c=0,h=n;c<h.length;c++){var d=h[c];l=d.id;v=d.kd;var _=r[l];if(e.uf<a+u+v){e.ff(e.uf*2)}var g=e.value;if(_){var y=o[l]||{},m=y.showText,p=m===void 0?1:m,b=y.showIcon,x=b===void 0?true:b;var C=0;var M=Infinity;var S=-Infinity;var w=Infinity;var k=-Infinity;if(x){C=w=0;k=d.icon*f;while(C<k){g[s+u+C]=1;C++}}if(p){C=M=d.icon*f;S=(d.icon+d.Rd+d.bg)*f;while(C<S){g[s+u+C]=1;C++}}}u+=v}s+=u;return s};e.prototype.Df=function(){};e.prototype.fd=function(e){var r=[];var t=[];if(e){r[0]=e;t[0]=e.size[0];t[1]=e.size[1]}var i=this._map.so.texture;if(i){r.push(i);var a=i.size;t.push(a[0],a[1])}return{De:r,sizes:t}};e.prototype.dd=function(e,r){var t=e.gl;var i=r.img,a=r.width,n=r.height;var o=i;if(i&&!i.context){o=e.createTexture(i);o.bind(t.CLAMP_TO_EDGE,t.LINEAR,t.LINEAR);r.img=o}return{texture:o,size:[a,n]}};return e}();var transforms=M[\\"transform\\"];var Support$1=M[\\"Support\\"];var LabelsRenderUtil=M[\\"LabelsRenderUtil\\"];var LabelsRenderDOMRender=function(){function e(){this._size=[0,0];this.Wz=1;var e=this.canvas=document.createElement(\\"canvas\\");this.Nz=e.getContext(\\"2d\\")}e.prototype.Ce=function(e,r,t,i,a){if(!e){return}this.wf=e;var O=e.size;this._size=O;var B=a.centerCoord,n=a.Uf,D=n===void 0?{}:n,U=a.$f,o=a.Sa,N=o===void 0?[0,0]:o;this.Tz();this.Pz();var f=e.viewState;var s=f.zoom;var H=f.viewMode;if(!this.Oz(s,r.zooms)){return}if(!this._map&&i){var z=f.projectionId;this._map=i;this.If=transforms[z];this._view=i.getView();this.ac=i.z_}if(!t[\\"other\\"]){return}var u=t&&t.other,G=u.coords,j=u.style,V=u.Nf,l=u.Fz,W=l===void 0?[]:l;var v={viewState:f,size:this.wf.size,transform:this.If,view:this._view,viewMode:H,centerCoord:B};this.Bz(r);for(var c=0,h=W;c<h.length;c++){var q=h[c];for(var d=0;d<q.length;d++){var _=q[d];if(!D[_]){continue}var g=V[_]||{};var y=G[_]||{};var m=j[_]||{};var Y=g.data.extData||{};var p=Y.Sa||N||[0,0];var Z=g.data||{};var b=Z[\\"txt\\"];var K=g.opts||{};var x=(m.icon||[])[0]||{};var X=x.image;var J=isUndefined(m.opacity)?1:K.opacity;var C=m.text;var M=g.data.richText||{};var Q=M?M.hS:\\"\\";if(X&&x&&this.Oz(s,m.icon&&m.icon.zooms)){var S={};var w=void 0;var k=void 0;var T=void 0;if(M&&M.image&&M.image.currentSrc){S=this.ac[\\"getImage\\"](\\"rich-icon_\\"+Q);w=S.img;k=S.width;T=S.height}else{S=this.ac[\\"getImage\\"](X);w=S.img;k=S.width;T=S.height}var ee={size:[k,T],opacity:J};var A=y.icon.origin;var I=y.icon.anchorOffset;var re=LabelsRenderUtil.wu(A[0]+p[0],A[1]+p[1],s,v);var te=[re[0]+I[0],re[1]+I[1]];if(w){this.drawImage(w,x,te,ee)}}if(b&&C&&this.Oz(s,m.text&&m.text.zooms)){var ie={opacity:J,padding:y.padding};var A=y.text.origin;var I=y.text.offset;var $=LabelsRenderUtil.wu(A[0]+p[0],A[1]+p[1],s,v);var ae=C.style;var ne=ae.fontSize||12;var F=[$[0]+I[0],$[1]+I[1]+ne];this.Ez(m.text,$,ie);var P=b.length;var oe=ae.fold===false?100:6;var L=Math.ceil(P/oe);var E=Math.floor(P/L);var fe=3;for(var R=0;R<L;R++){var se=R===L-1?P-R*E:E;var ue=b.substr(R*E,se);this.gp(ue,C,F,ie);var le=ne*5/4+fe;F[1]=F[1]+le}}}}};e.prototype.Ez=function(e,r,t){var i=this.Nz;var a=Support$1.scale,n=a===void 0?1:a;var o=e.style.backgroundColor;var f=t.padding;var s=f.offsetX,u=f.offsetY,l=f.w,v=f.h;var c=r[0]+s;var h=r[1]+u;if(i&&o){i.fillStyle=o;i.fillRect(c*n,h*n,l*n,v*n)}};e.prototype.drawImage=function(e,r,t,i){var a=Support$1.scale;var n=this.Nz;if(!n||!r){return}var o=r[\\"image\\"];var f=r[\\"size\\"];var s=r[\\"clipOrigin\\"];var u=r[\\"angel\\"];var l=r[\\"clipSize\\"];var v=i.opacity,c=v===void 0?1:v;var h=f[0];var d=f[1];var _=e.width||h;var g=e.height||d;var y=l[0];var m=l[1];var p=s[0];var b=s[1];if(isUndefined(y)){y=h}if(isUndefined(m)){m=d}if(y>_){y=_}if(m>g){m=g}n.globalAlpha=c*this.Wz;n.drawImage(e,p,b,y,m,t[0]*a,t[1]*a,h*a,d*a)};e.prototype.gp=function(e,r,t,i){var a=Support$1.scale,n=a===void 0?1:a;var o=this.Nz;if(!o){return}var f=r.style,s=f===void 0?{}:f;var u=i.opacity,l=u===void 0?1:u;var v=s.fontWeight,c=s.fontSize,h=s.fontFamily,d=h===void 0?\\"sans-serif\\":h,_=s.fillColor,g=s.strokeColor,y=s.strokeWidth,m=y===void 0?1:y,p=s.textAlign,b=p===void 0?\\"center\\":p,x=s.Gz,C=x===void 0?\\"Alphabetic\\":x;o.globalAlpha=l;o.globalAlpha=1;o.font=v+\\" \\"+c*n+\\"px \\"+d;o.textAlign=b;o.textBaseline=C;var M=t[0];var S=t[1];o.lineJoin=\\"round\\";if(g&&m){o.strokeStyle=g;o.lineWidth=m;o.strokeText(e,M*n,S*n)}o.fillStyle=_;o.fillText(e,M*n,S*n)};e.prototype.Pz=function(){var e=this.canvas;var r=Support$1.scale;var t=this._size||[0,0],i=t[0],a=t[1]};e.prototype.Tz=function(){this.canvas.width=this.canvas.width};e.prototype.reset=function(){this.Pz()};e.prototype.destroy=function(){this.Pz()};e.prototype.Oz=function(e,r){if(r===void 0){r=[]}var t=r[0]||zoomRange[0];var i=r[1]||zoomRange[1];if(e>=t&&e<=i){return true}return false};e.prototype.Bz=function(e){var r=this._container;if(!r){r=this._container=this.see(this._map)}var t=Support$1.scale;var i=e.zIndex,a=i===void 0?100:i,n=e.opacity,o=e.visible,f=e.zooms,s=f===void 0?zoomRange:f;var u=this.wf.viewState.zoom;var l=this.Oz(u,s);if(!o||!l||n===0){r.style.display=\\"none\\"}else{r.style.display=\\"block\\"}this.Wz=n;var v=this._size;r.setAttribute(\\"width\\",v[0]*t+\\"px\\");r.setAttribute(\\"height\\",v[1]*t+\\"px\\");r.style.width=v[0]+\\"px\\";r.style.height=v[1]+\\"px\\";r.style.zIndex=a+\\"\\"};e.prototype.see=function(e){var r=e.getContainer();var t=r.querySelector(\\".amap-layers\\");if(t){t.appendChild(this.canvas)}AMap.DomUtil.addClass(this.canvas,\\"amap-labellayers\\");return this.canvas};return e}();var SmartTypedArray=M[\\"SmartTypedArray\\"];var LabelsLayerBaseRender=function(r){__extends(e,r);function e(){var e=r.call(this)||this;e.type=\\"labelsLayer\\";e.wf=null;e.Ps={};e._viewMode=\\"2D\\";e.Wf={};e.Bf={};e.TG={};e.uu=[0,0];return e}e.prototype.Hz=function(e,r,t,i,a,n){if(!this.ac){this._map=a;this._view=a.getView();this.ac=a.z_;this.Mf=a.R_;this._viewMode=r.viewState.viewMode;this.fz=a.fS();if(!this._map.isDOMMode()){if(!this.Zz){this.Zz=new LabelsRender}}else{if(!this.Vz){this.Vz=new LabelsRenderDOMRender}}if(this.Zz){this.Zz.Mz({map:a,z_:a.z_,R_:a.R_,$i:e.Zn()})}}};e.prototype.Jz=function(){return{centerCoord:this.uu}};e.prototype.vi=function(e){if(this.fz){var r=this.fz.vi(e,\\"\\");return r}return null};e.prototype.destroy=function(){if(this.Zz){this.Zz.destroy();delete this.Zz}if(this.Vz){this.Vz.destroy();delete this.Vz}this.AG()};e.prototype.reset=function(){if(this.Zz){this.Zz.reset()}if(this.Vz){this.Vz.reset()}};e.prototype.Yz=function(e,r,t,i,a){this.Vz.Ce(e,r,t,i,a)};e.prototype.SG=function(){var e=typeof Int8Array!==\\"undefined\\";var r;if(e){r=new SmartTypedArray(\\"uint8\\",5e5);r.value.fill(0)}return r};e.prototype.zG=function(e){if(!this.TG[e]){this.TG[e]={iterator:0}}var r=this.TG[e];if(!r.LG){r.LG=this.SG()}if(!r.zz){r.zz=[]}return this.TG[e]};e.prototype.AG=function(){var e=this.TG||{};for(var r in e){if(e.hasOwnProperty(r)){var t=e[r];delete t.zz;if(t.od){t.od.destroy();delete t.od}t.iterator=0;if(t.LG){t.LG.value.fill(0)}}}};return e}(LayerRender);var Util$1=AMap[\\"Util\\"];var transforms$1=M[\\"transform\\"];var lcs=M[\\"geo\\"][\\"lcs\\"];var SmartArrayBuffer=M[\\"SmartArrayBuffer\\"];var LabelsLayerRender=function(_){__extends(e,_);function e(){var e=_.call(this)||this;e.type=\\"labelsLayer\\";e.l_=\\"labelsLayer\\";return e}e.prototype.Hz=function(e,r,t,i,a,n){if(!i||!r){return}_.prototype.Hz.call(this,e,r,t,i,a,n);this.wf=r;var o=r.viewState;var f=o.projectionId;this.If=transforms$1[f];var s=o.zoom;if(r&&n.visible&&n.opacity&&Util$1.dS(s,n.zooms)){if(!i.Nf){return}if(!this._map.isDOMMode()){var u=e.context;i.upload(u)}if(!i){return}var l=i.rp,v=i.buffer,c=i.zo;var h=o.centerCoord;this.uu=lcs.getLocalByCoord([h[0],h[1]]).center||[0,0];var d=this.Ps=i;this.Ps.lp=l.up;return d}return null};e.prototype.renderFrame=function(e,r,t,i,a){var n=this.fz;if(n){this.Wf=n.Uf;this.Bf=n.$f}if(!this._map){return}if(!this._map.isDOMMode()){this.Jh(e,t,r,i,a)}else{var o=this.Ps.zo;var f=Util$1.hp(o,this.wf);this.Yz(t,i,r,this._map,{Sa:f,centerCoord:this.uu,Uf:this.Wf,$f:this.Bf})}};e.prototype.Jz=function(){var e=this.Ps.zo;var r=Util$1.hp(e,this.wf);var t={Sa:r,from:\\"labelsLayer\\",opacity:1,offset:[0,0],centerCoord:this.uu};return t};e.prototype.Jh=function(e,r,t,i,a){var n=this.Zz;var o=e.context;if(!t){return}if(!t[\\"other\\"]){return}var f=t[\\"other\\"],s=f.rp,u=f.buffer,l=f.zo;var v=Util$1.hp(l,r);if(!s||!s.up){return}this.AG();var c=this.zG(this.l_);var h=c.LG,d=c.od;var _=CONSTS.sp;var g=s&&s.pp;var y=g.length;var m=0;var p=0;var b=[];var x=this.Ps.style||{};for(var C=0;C<y;C++){var M=g[C];var S=M.dp||[];m=p;p=n.Dz(h,this.Wf,{start:m,dp:S,style:x});b.push({start:m,end:p})}if(d){d.update(h.value)}else{c.od=new SmartArrayBuffer(o,h.value,_)}c.zz=b;if(i.ce){e.context.clear({depth:true})}n.Ce(r,o,{Rz:s,buffer:u,od:c.od.buffer,zz:c.zz},{from:this.type,Sz:true,Sa:v,oo:e,LF:i,yZ:true,fee:a.uee})};return e}(LabelsLayerBaseRender);var utils=M[\\"Util\\"];var LabelsRenderUtil$1=M[\\"LabelsRenderUtil\\"];var labelsUtil=M[\\"labelsUtil\\"];var vector=M[\\"vector\\"];var SmartArrayBuffer$1=M[\\"SmartArrayBuffer\\"];var SmartTypedArray$1=M[\\"SmartTypedArray\\"];var rbush=M[\\"rbush\\"];var Support$2=M[\\"Support\\"];var LabelLine=function(){function e(){this._viewMode=\\"2D\\";this.Gf=rbush();this.Cf=null;this.u_=null;this.Jp=0;this.bo=zoomRange[1];this.Xf={};this.Lf=new Uint8Array(1e5).fill(1);this.Qp=new SmartTypedArray$1(\\"float32\\",1e5)}e.prototype.Ns=function(e,r){if(r===void 0){r={}}var t=r.DG,i=r.transform,a=r.view,n=r.centerCoord,o=r.FG,f=r.context,s=r.Uf,u=r.bounds,l=r.Iz;if(!this._map){this._map=r.map;this.b$=r.fz}this.wf=t;this.aa=t.viewState;this.If=i;this._view=a;this._viewMode=t.viewState.viewMode;this.uu=n;this.HG=o;this.Wf=s;this.bo=l;this.Kz();if(!this.Cf){this.Cf=f.fe(this.Lf,1)}this.Xf=r.tZ;this.Kf(e,r);this.Qf(this.Xf,r);return this.ip(f,r.DG)};e.prototype.destroy=function(){this.Kz();delete this.Xf;if(this.Cf&&this.Cf.context){this.Cf.context.deleteBuffer(this.Cf);delete this.Cf}};e.prototype.Kf=function(O,e){if(e===void 0){e={}}var r=this.aa;var t=(r||{}).zoom,i=t===void 0?zoomRange[1]:t;var a=this.If;var n=this.Xf;var B=CONSTS.Color;var o=e.bounds;if(!r){return}var f={};var D=r.rotation||0;for(var s=0,u=O;s<u.length;s++){var l=u[s];var v=l.rank;if(!f[v]){f[v]=[]}f[v].push(l)}var c=Object.keys(f);var U=c.length;var h;var d;var _;var g;var y;var m;var p;var b;var x;var C;var M;var S;var w;var k;var T;var A;var N;var H;var z;var I;var G;var j=0;var $;var V;var W;var q=this._map.getMapState().Tf;for(var F=U-1;F>=0;F--){h=f[c[F]];for(var P=0,Y=h;P<Y.length;P++){var L=Y[P];d=L.name;V=L.$G;_=L.CO;g=L.EG;$=L.BG;y=L.path;m=L.positionType||\\"absolute\\";p=L.zooms;b=L.rank;x=L.style;S=L.Bp;W=L.extData;C=LabelsRenderUtil$1.kz([[-L.Sa[0],-L.Sa[1]]],S,i,{centerCoord:this.uu})[0];M=L.key;C=LabelsRenderUtil$1.MG(S,C);var E=L.extData&&L.extData.mainkey&&L.extData.subkey?this._map.mapStyle.dn(L.extData.mainkey,L.extData.subkey,r.optimalZoom):null;w=x.fontSize;k=x.fillColor;T=x.strokeColor||B.Gp;if(E&&E[1]){w=E[1]?E[1].fontSize:x.fontSize;k=E[1].faceColor?E[1].faceColor.normalize():k;T=E[1].borderColor?E[1].borderColor.normalize():T}A=w*1.3;N=this.Zp(y,A,{zoom:i,transform:a,bounds:o,Bp:S,BG:$,positionType:m});j=0;for(var R=0,Z=N;R<Z.length;R++){var K=Z[R];H=K.length||0;if(H<2){continue}z={transform:a,fontSize:w,qp:A,zoom:i,name:d,CO:_,EG:g,BG:$,Sa:C,bounds:o,Tf:q,nF:D};I=this.Yp(K,z,j++<1);if(I.Id){if(!I.pos.length||!I.pos[0].length){continue}}G={name:d,$G:V,CO:_,rank:b,fontSize:w,fillColor:k,strokeColor:T,zooms:p,Sa:C,key:M,Bp:S,extData:W};this.Vp(I,n,G)}}}return n};e.prototype.Zp=function(e,r,t){if(e===void 0){e=[]}if(r===void 0){r=20}if(t===void 0){t={}}var i=CONSTS.Dp,a=i.Ad,n=i.Bd;var o=t.zoom,f=t.Bp,s=t.BG,u=t.positionType;var l=0;var v=0;var c=0;var h;var d;var _;var g=e.length-1;var y=[[]];var m=o<12?10:a;var p=this.aa;var b;var x;if(!p){return y}var C={viewState:p,size:this.HG,transform:this.If,view:this._view,viewMode:this._viewMode,centerCoord:this.uu,positionType:u};for(var M=0;M<g-1;M+=2){var S=LabelsRenderUtil$1.kz([[e[M],e[M+1]],[e[M+2],e[M+3]]],f,o,{centerCoord:this.uu}),w=S[0],k=S[1];_=h;h=M===0?this._viewMode===\\"2D\\"?this.If.transform(w[0],w[1],o):LabelsRenderUtil$1.wu(w[0],w[1],o,C):d;d=this._viewMode===\\"2D\\"?this.If.transform(k[0],k[1],o):LabelsRenderUtil$1.wu(k[0],k[1],o,C);v=labelsUtil.Sd(h,d);c=l;l+=v;var T=v/r;var A=void 0;if(l>m){if(c/m<.3&&v/m>=2){h=labelsUtil.OG(h,d,m/v)}if(_){var I=vector.Ip(h,_);var $=vector.Ip(d,h);A=vector.Qj(I,$)}else{A=0}if(!b){b=labelsUtil.Ed([h,d],s);x=b}else{b=labelsUtil.Ed([h,d],s)}if(A<=n&&b===x&&(T>1||o<12&&T>=.6)){y[y.length-1].push(h)}else{y[y.length-1].push(h);b=x=undefined;var F=y[y.length-1];if(F[0]!==undefined){y.push([])}}if(M===g-3){y[y.length-1].push(d)}}}for(var M=0;M<y.length;M++){var P=y[M];var L=labelsUtil.Ed(P,s);if(L){y[M].reverse()}}return y};e.prototype.Yp=function(e,r,t){if(e===void 0){e=[]}if(r===void 0){r={}}if(t===void 0){t=false}var i=0;var a=CONSTS.Dp;var O=a.BaseInterval,B=a.e1;var n=r.transform,o=r.fontSize,f=o===void 0?12:o,s=r.zoom,u=s===void 0?20:s,l=r.BG,D=l===void 0?0:l,v=r.CO,c=v===void 0?[]:v,h=r.EG;var d={index:0,Id:0,pos:[],Dd:[],Pd:[],points:[],EG:[]};var _=r.qp||24;var U=e.length;var g=c.length;var y;var m=false;var p;var b;var x;var C;var M;var S;var w;var k;var T=0;var A=0;var I=false;var $={viewMode:this._viewMode,transform:n,view:this._view};while(T<U-1&&A<30){A++;var F=d.index;if(!d.pos[F]){d.pos[F]=[];d.Pd[F]=[];d.points[F]=[];d.Dd[F]=[]}var P=void 0;var L=void 0;var E=e[T+1];S=labelsUtil.getAngle(e[T],E);if(!I){P=e[T]}else{P=y}var N=c[d.Id];var H=h[N];var z=24;var G=f/z;var R=D===\\"ch\\";_=R?f*1.3:H&&H.char[4]*G*1.3;if(m){y=labelsUtil.jd(y,e[T],e[T+1],_)}else{y=labelsUtil.Od(P,S,_)}p=d.index;if(d.Id<g&&t){if(this._viewMode===\\"2D\\"){b=n.Xs(P[0],P[1],u);x=n.Xs(y[0],y[1],u)}else{b=LabelsRenderUtil$1.nt(P[0],P[1],u,$);x=LabelsRenderUtil$1.nt(y[0],y[1],u,$)}C=labelsUtil.Fd(b,x,1)[0];L=labelsUtil.Fd(P,y,1)[0];M=false;w=M?labelsUtil.Nd(y,P,R?\\"\\":\\"x\\"):labelsUtil.Nd(P,y,R?\\"\\":\\"x\\");d.pos[p].push(C);d.points[p].push(L);d.Pd[F].push(w);d.Id++}else{t=true;d.index++;d.Id=0;i++;T=this.zd(e,T,i*O+g*B);I=false;m=false;continue}if(d.Id===g-1){d.pos[p].$d=false;d.EG[p]=h}k=labelsUtil.Sd(y,E);if(k<_){T++;m=true;I=true}else{I=true;m=false}}return d};e.prototype.Vp=function(e,r,t){if(e===void 0){e={}}if(t===void 0){t={}}var i=t.name,a=i===void 0?\\"\\":i,n=t.$G,o=n===void 0?[]:n,f=t.CO,s=f===void 0?[]:f,u=t.rank,l=u===void 0?1:u,v=t.fontSize,c=v===void 0?12:v,h=t.fillColor,d=t.strokeColor,_=t.zooms,g=t.Sa,y=t.key,m=t.Bp,p=t.extData,b=p===void 0?{}:p;var x=s.length;var O=e.pos.length;var C;var M;var S;var w;var k;var T=[];var A=[];var I=[];var $=false;var F=0;for(var P=0;P<O;P++){C=e.pos[P]||[];T=e.Pd[P]||[];I=e.EG[P]||[];M=C.$d;if(C.length===x){for(F=0;F<x;F++){S=M?x-1-F:F;w=C[S];if(!w||!this.Ud(T,F)){$=true;break}if(o&&o.length){k=a.substring.apply(a,o.slice(F,F+2))}else{k=a.substr(F,1)}var L={data:{id:utils.stamp(this),position:w,name:a,extData:{Sa:g,key:y,Bp:m,CO:s.slice(F,F+1),Lp:b.mainkey,Ap:b.subkey},txt:k,rank:l},opts:{type:\\"normal\\",angle:T[S]||0,zooms:_,text:{direction:\\"center\\",offset:[0,0],EG:I,style:{fontSize:c,fillColor:h,strokeColor:d,strokeWidth:2}}}};var E=this._map.getLayerByClass(\\"AMap.MaskLayer\\");if(E){var R=E.getRender();if(R){if(!R.EH(L.data.position,this.wf)){return false}}}A.push(L)}if(!$){if(!r[y]){r[y]=[]}if(r[y].indexOf(A)<0){r[y].push(A)}}}}};e.prototype.zd=function(e,r,t){if(e===void 0){e=[]}if(r===void 0){r=0}if(t===void 0){t=0}var i=0;var a=e.length-1;var n=r;for(;n<a;n++){var o=e[n];var f=e[n+1];var s=labelsUtil.Sd(o,f);i+=s;if(i>=t){break}}return n};e.prototype.Ud=function(e,r){if(e===void 0){e=[]}if(r===void 0){r=0}var t=CONSTS.Dp.Bd;var i=r-1;if(i<0){return true}var a=e[r];var n=e[i];if(Math.abs(a-n)>=t){return false}return true};e.prototype.Qf=function(e,r){if(r===void 0){r={}}var t=this.aa;if(!t){return}var i=t&&t.zoom||20;var a=this.b$;var n=t.zoom,o=n===void 0?zoomRange[1]:n;var f=r.bounds;var s=this.Gf;var u;var l;var v;var c=false;var h=0;var d=[];for(var _ in e){if(e.hasOwnProperty(_)){v=e[_];for(var g=0,y=v;g<y.length;g++){var m=y[g];for(var p=0,b=m;p<b.length;p++){var x=b[p];var C=x.data;var O=x.opts;var M=C.txt;var S=C.position;var w=C.extData;var k=w.Bp;var B=LabelsRenderUtil$1.kz([vector.multiply(w.Sa,-1)],k,o,{centerCoord:this.uu})[0];var T=w.Lp?this._map.mapStyle.dn(w.Lp,w.Ap,i):null;var A=T&&T[1];var I=LabelsRenderUtil$1.gz(S,f);u=[];if(I&&A){var $=A&&A.fontSize;var F=LabelsRenderUtil$1.wu(S[0],S[1],o,{viewState:t,size:this.HG,transform:this.If,view:this._view,viewMode:this._viewMode,centerCoord:this.uu,positionType:\\"relative\\"});var P=this.Xp(F,$);l=this.b$.iC(P,{padding:5,id:M,type:\\"road\\"});u=a.search(l);if(!u.length){u=s.search(l)}}if(!I||!A){c=true;break}var L=0;var D=u.length;while(L<D){if(this.Wf[u[L].id]||u[L].type===\\"road\\"){c=true;break}L++}if(l){d.push(l)}}if(!c){h+=m.length;for(var E=0,R=d;E<R.length;E++){var U=R[E];s.Xc(U)}d=[]}m.hide=c;c=false}}}this.Jp=h};e.prototype.ip=function(O,B){var e;var D=CONSTS.sp,U=CONSTS.Kp,r=CONSTS.ud;var t=this.Xf||{};var N=this.aa;var H=0;if(N&&this._map){var z=N.zoom;var i=0;var a=2;var G=this.bo;var j=this._map.getMapState().Af;var V=this.Jp;var n=r*6;var o=void 0;if(V*n>1e5){this.Qp.ff(V*n);o=this.Qp.value}else{o=this.Qp.value}var W=[];var q=0;var f=void 0;var s=void 0;var u=void 0;var l=void 0;var v=void 0;var Y=void 0;var Z=void 0;var c=void 0;var h=void 0;var K=void 0;var X=void 0;var J=void 0;var d=void 0;var Q=void 0;var ee=void 0;var re=void 0;var te=void 0;var ie=void 0;var ae=void 0;var ne=void 0;var oe=void 0;var _=void 0;var fe=void 0;var g=void 0;var y=void 0;var m=void 0;var p=void 0;var b=void 0;var x=void 0;var C=void 0;var M=void 0;var S=void 0;var se=void 0;var ue=void 0;var le=void 0;var ve=void 0;var w=void 0;var ce=void 0;var he=void 0;var k=void 0;var T=void 0;var A=void 0;var I=void 0;var de=void 0;var _e=void 0;var $=void 0;var F=void 0;var P=void 0;var ge=void 0;var ye=0;var me=void 0;var pe=void 0;var be=void 0;var L=0;for(var xe in t){if(t.hasOwnProperty(xe)){var Ce=t[xe];q=Ce.length;for(var Me=0;Me<q;Me++){pe=Ce[Me];if(pe.hide){continue}for(var Se=0,we=pe;Se<we.length;Se++){var ke=we[Se];f=ke.data;s=ke.opts;u=f.position;l=f.extData;be=l.CO;me=l.Bp;v=s.angle||0;Y=s.zooms;Z=s.text;oe=Z.EG||{};c=Z.style;h=c.fontSize;K=c.fillColor;X=c.strokeColor;J=c.strokeWidth||0;d=this.td(h,J);Q=d.gamma;ee=d.ed;te=d.backgroundColor;ie=d.strokeWidth;re=d.nd;ae=1;for(var E=0;E<ae;E++){ne=be;_=oe[ne]||{index:EnumTextureIndex.dynamic,char:(e=this._map.yH)===null||e===void 0?void 0:e.LB(xe)[ne],pos:{startX:0,startY:0}};if(!_||!_.char){continue}fe=_.index;g=_.char;y=u[E];m=u[E+1];if(!y||!m||!g){continue}p=Y[0];b=Y[1];x=h/U.size;C=1;if(j&&G>z){x=x/Math.pow(2,G-z)}M=g[0];S=g[1];se=g[2];ue=g[3];le=g[5];ve=g[6];w=U.buffer;var Te=h/24*(g[4]+CONSTS.ic);var Ae={x:-Te/2,y:-h/2};if(M>0&&S>0){M+=w*2;S+=w*2;ce=Ae.x;he=Ae.y;k=C*(ce+(se-w)*x);T=C*(ce+(se-w+M)*x);A=C*(he-ue*x);I=C*(he+(S-ue)*x);de=0;_e=0;de+=_.pos.startX;_e+=_.pos.startY;$=de+le;F=_e+ve;P=fe;o.set([k,A,$,F,y,m,P,a,p,b,i,v,L,T,A,$+M,F,y,m,P,a,p,b,i,v,L,k,I,$,F+S,y,m,P,a,p,b,i,v,L,k,I,$,F+S,y,m,P,a,p,b,i,v,L,T,A,$+M,F,y,m,P,a,p,b,i,v,L,T,I,$+M,F+S,y,m,P,a,p,b,i,v,L],ye);ye+=n;ge=H*r*6;W.push([h,[y,m],v,K,X,Q,w,re,ee,te,ie,ge,ge+6*r,l.key,me]);H++}}}}}}var R=this.u_;if(R){R.update(o)}else{R=this.u_=new SmartArrayBuffer$1(O,o,D)}return{pp:W,zs:R,od:this.Cf}}return{pp:[],od:null,zs:null}};e.prototype.Xp=function(e,r){if(r===void 0){r=12}var t=r*1.3;var i=r*1.3;var a=e[0],n=e[1];var o=[a-t/2,n-i/2];return{x:o[0],y:o[1],width:t,height:i}};e.prototype.td=function(e,r){if(e===void 0){e=12}if(r===void 0){r=0}var t=CONSTS.Cd,i=CONSTS.Ld,a=CONSTS.Color;var n=DangerousFontSize;var o=0;var f=e<12?t:i;if(r){r=r*Support$2.scale>10?10:r;o=f*(1-r/10.1)}var s=e>n||Support$2.scale>1?1.7:1.5;s=s*1.4142/e;var u=f-1/256*(Support$2.scale-1);return{gamma:s,nd:o,ed:u,backgroundColor:a.Gp,strokeWidth:r}};e.prototype.Kz=function(){if(this.Gf){this.Gf.clear()}};return e}();var _a;var SmartArrayBuffer$2=M[\\"SmartArrayBuffer\\"];var Util$2=AMap[\\"Util\\"];var NebulaLabelFormat=M[\\"NebulaLabelFormat\\"];var MapboxLabelFormat=M[\\"MapboxLabelFormat\\"];var labelsUtil$1=M[\\"labelsUtil\\"];var LabelsRenderUtil$2=M[\\"LabelsRenderUtil\\"];var vector$1=M[\\"vector\\"];var transforms$2=M[\\"transform\\"];var lcs$1=M[\\"geo\\"][\\"lcs\\"];var LabelFormatMap=(_a={},_a[NebulaLabelFormat.id]=NebulaLabelFormat,_a[MapboxLabelFormat.id]=MapboxLabelFormat,_a[\\"nebula\\"]=NebulaLabelFormat,_a);var TileLabelsLayerRender=function(O){__extends(e,O);function e(){var e=O.call(this)||this;e.type=\\"nebula-labelslayer\\";e.Xz=false;e.l_=\\"inner\\";e.vf=[];e.mf={};e.bo=20;e.Xf={};e.tp={pp:[],od:null,zs:null};e.kp={};e.NG={};e.WG=new LabelLine;e.lee=new LabelStyleChangeManager;return e}e.prototype.Hz=function(e,r,t,i,a,n){if(!i||!r){return}O.prototype.Hz.call(this,e,r,t,i,a,n);var o=r.viewState.zoom;if(i&&r&&n.visible&&n.opacity&&Util$2.dS(o,n.zooms)){var f=[];var s=true;var u=void 0;this.NG={};for(var l=0;l<i.length;l++){var v=i[l];var c=v.tiles||[];for(var h=0;h<c.length;h++){var d=c[h];f.push(d)}if(c.length){s=s&&v.fo}u=v.Ca}var _={};for(var g=0,y=f;g<y.length;g++){var m=y[g];_[m.zo.key]=m}this.Xz=s;if(s){this.vf=Object.keys(_);this.mf=_;this.mf.yf=u||[]}var p=this.vf;if(!p){return}var b=void 0;var x=void 0;var C=void 0;for(var M=0,S=p;M<S.length;M++){var w=S[M];x=this.mf[w];var k=Array.isArray(x.data)?x.data:[x.data]||[];for(var T=0,A=k;T<A.length;T++){C=A[T];if(C&&C.labels){b=labelsUtil$1.xf(C.labels,this.mf.yf);if(!this._map.isDOMMode()){for(var I=0,$=b;I<$.length;I++){var F=$[I];F.upload(e.context)}}C.gf=b}}}var P=r.viewState;var L=P.projectionId,E=P.centerCoord;this.If=transforms$2[L];this.uu=lcs$1.getLocalByCoord([E[0],E[1]]).center;var R=this.Ps=this.Pf(this.mf,e);return R}return null};e.prototype.renderFrame=function(e,r,t,i,a){this.wf=t;var n=t.viewState;var o=this.vf;var f=this.Zz;if(!o||!n){return}var s=e.context;var u=this.fz;var l=this._map;if(!l){return}if(this._map.bZ.MZ.drawMode!==\\"fast\\"&&(!this._map.bZ.dynamic.get(\\"firstLabelDataAllLoaded\\")||!this._map.bZ.dynamic.get(\\"firstAllLoaded\\"))){return}var v=l.qz();var c=l.Qz();var h=this._map.isDOMMode();var d=r.tile[0].yZ;if(r.tile[1]){d=d||r.tile[1].yZ}if(v){this.Bf=u.$f;this.Wf=u.Uf;if(!h){this.Jh(e,t,o,{yZ:d,fee:a.uee})}else{this.Yz(t,i,r,this._map,{centerCoord:this.uu,Uf:this.Wf,$f:this.Bf})}}if(h){return}var _=this._map.TL();var g=this.Ps;if(c&&d){if(g.Vf&&!_){this.Xf={};var y=LabelsRenderUtil$2.getBounds(n,{zoom:n.zoom,centerCoord:this.uu,view:this._view,transform:this.If,viewMode:this._viewMode});this.bo=t.viewState.zoom;var m={map:this._map,fz:this.fz,R_:this.Mf,DG:t,transform:this.If,view:this._view,centerCoord:this.uu,FG:t.size,context:s,Uf:this.Wf,bounds:y,Iz:this.bo,tZ:this.Xf};var p=this.Jf(this.mf);this.tp=this.WG.Ns(p,m)}f.Cz(t,s,this.mf,{$z:this.tp},{Az:this.vf,Iz:this.bo,centerCoord:this.uu,yZ:d,fee:a.uee})}};e.prototype.destroy=function(){delete this.tp;delete this.kp;delete this.vf;delete this.mf;if(this.WG&&this.WG[\\"destroy\\"]){this.WG.destroy();delete this.WG}if(this.lee){delete this.lee}O.prototype.destroy.call(this)};e.prototype.reset=function(){this.Xf={};if(this.tp.zs){this.tp.pp=[]}O.prototype.reset.call(this)};e.prototype.Jh=function(e,r,t,i){var a=this.Zz;var n=e.context;var o=this.Ps.lp||0;if(!o){return}this.qf(n,this.mf);var f;var s;var u;var l;for(var v=0;v<t.length;v++){var c=t[v];l=this.mf[c];if(l&&l.data){f=Array.isArray(l.data)?l.data:[l.data];var h=l.type;var d=this.zG(h);var _=d.od,g=d.zz;var y=d.iterator;if(!_){continue}for(var m=0,p=f;m<p.length;m++){s=p[m];u=l.Sa;var b=s.gf;u=LabelsRenderUtil$2.MG(l.zo.z,u);if(b){for(var x=0;x<b.length;x++){var C=b[x];y=a.Ce(r,e.context,{Rz:C.rp,buffer:C.buffer,od:_.buffer,zz:g},{iterator:y,Sa:u,oo:e,yZ:i.yZ,fee:i.fee})}}}d.iterator=y}}};e.prototype.Pf=function(O,B){var e=this.wf;var r=e&&e.viewState;if(!r){return{}}var t=r&&r.optimalZoom||20;var i=r&&r.zoom||20;var a=false;var n=0;var D=LabelsRenderUtil$2.getBounds(r,{zoom:t,centerCoord:this.uu,view:this._view,transform:this.If,viewMode:this._viewMode});var U=CONSTS.Mp,N=CONSTS.Rp;var o;var f;var s;var u;var l;var v;var c;var h;var d;var _;var g;var y;var m;var p;var b;var x;var C;var H=t>20?20:t<3?3:t;var M=this.vf;var z=M.length;var G=[U,N];var S={};var w={};var k={};var T={};var A;var I;var $=r.zoom;var j=true;for(var F=0;F<z;F++){u=O[M[F]];A=Array.isArray(u.data)?u.data:[u.data];for(var P=0,V=A;P<V.length;P++){I=V[P];if(I&&I.gf){var W=I.gf;for(var L=0,q=W;L<q.length;L++){l=q[L];v=l.coords;if(v){h=l.Nf;_=l.zp;g=_[H]||[];d=l.rp;n+=d.up;for(var E=0,Y=g;E<Y.length;E++){var R=Y[E];j=false;m=h[R];p=v[R];y=u.Sa;y=LabelsRenderUtil$2.MG(u.zo.z,y);x=vector$1.add(p.origin,y);C=LabelsRenderUtil$2.gz(x,D);if(!C&&!S[R]){if(!this.Bf[R]){T[R]=1}this.Bf[R]=1;continue}o=h[R].data.extData;f=o.Lp?this._map.mapStyle.dn(o.Lp,o.Ap,i):null;s=m.opts||{};b=s.zooms||G;if(!S[R]&&($<b[0]||$>b[1]||o.Lp&&!f)){if(!this.Bf[R]){T[R]=1}this.Bf[R]=1;continue}if(T[R]){delete this.Bf[R]}c=l.style;S[R]=m;w[R]=p;k[R]=c[R];o.Sa=y;if(o.Lp===40001){k[R].showText=f?f.showText===0?false:true:true;k[R].showIcon=f?f.iconID===\\"0\\"?false:true:true;k[R].forceShow=f?f.forceShow:false}else{k[R].showIcon=f?f.iconID!==\\"0\\":true;k[R].showText=f?f.showText:true;k[R].forceShow=f?f.forceShow:false}a=true}}this.lee.vee(this._map.bZ.MZ.KY.iX);this.lee.cee(l,this._map.mapStyle,l.Nf,l.style,i,this._map.bZ.MZ.KY.iX);l.upload(B.context)}}}}if(j){a=true}return{Vf:a,lp:n,Nf:S,coords:w,style:k}};e.prototype.qf=function(e,r){var t=this.Zz;var i=this.vf;var a=this.Ps.lp||0;var n=a/12;var o=1;var f={};var s;var u;var l;var v;var c;var h;var d;var _;if(!n){return}this.AG();for(var g=0,y=i;g<y.length;g++){var m=y[g];s=r[m];var p=s.type;var b=this.zG(p);b.LG.ff(n);var x=f[p];if(!x){x=f[p]={start:0,end:0}}if(s){u=Array.isArray(s.data)?s.data:[s.data];for(var C=0,M=u;C<M.length;C++){l=M[C];var S=l.gf;var w=this.Ps.style||{};if(S){for(var k=0,T=S;k<T.length;k++){var A=T[k];v=A.rp;c=v&&v.pp;h=c.length;for(var I=0;I<h;I++){d=c[I];_=d.dp;x.start=x.end;x.end=t.Dz(b.LG,this.Wf,{dp:_,style:w,start:x.start});b.zz.push({start:x.start,end:x.end})}}}}}}var $=this.TG;for(var F in $){if($.hasOwnProperty(F)){var P=$[F];var L=P.od;var E=P.LG.value;if(!L){L=new SmartArrayBuffer$2(e,E,o)}else{L.update(E)}P.od=L}}};e.prototype.Jf=function(e){var r=CONSTS.Op;var t=this.wf;if(!t){return}var i=t.viewState;var a=i&&i.zoom;var n=[];var o=this.vf;var f=o.length;var s=this.Xf;var u;var l;var v;var c;var h;var d;var _;var g;for(var y=0;y<f;y++){var m=e[o[y]];h=Array.isArray(m.data)?m.data:[m.data];for(var p=0,b=h;p<b.length;p++){d=b[p];if(a&&d&&d.XE){u=d.road||d.Dh||[];_=d.XE;l=m.Sa;v=m.zo.key;c=m.zo.z;if(s[v]){continue}for(var x=0,C=_;x<C.length;x++){var M=C[x];g=LabelsRenderUtil$2.wu(M.distance,0,a,{viewState:i,size:t.size,transform:this.If,view:this._view,viewMode:this._viewMode,centerCoord:this.uu});if(Math.abs(g[0]-g[1])<r){continue}M.Sa=l;M.key=v;M.Bp=c;n.push(M)}}}}return n};return e}(LabelsLayerBaseRender);var LabelStyleChangeManager=function(){function e(){this.hee=0;this.dee=\\"\\";this._ee=undefined;this.gee=-1}e.prototype.vee=function(e){if(e!==this.dee&&this._ee&&this.gee>=0&&this.hee>=0){this.yee(this._ee.rp.rp,this.gee,this.hee,0);this._ee.destroy();this._ee=undefined}};e.prototype.yee=function(e,r,t,i){for(var a=0;a<t;a++){var n=(r+a)*13+12;e[n]=i}};e.prototype.cee=function(e,r,t,i,a,n){var o=0;for(var f=0,s=e.rp.pp;f<s.length;f++){var u=s[f];var l=void 0;for(var v=0,c=u.dp;v<c.length;v++){var h=c[v];l=h.id;var d=t[h.id].data.extData;if(!d||!d.Lp||!d.Ap){continue}var _=r.dn(d.Lp,d.Ap,a);var g=i[h.id];if(!_){o+=h.kd;continue}if(!g.text){o+=h.kd;continue}if(d.Lp===40001){u.vd.VV(\\"u_fontSizeFactor\\",1)}else{var y=_.fontSize;var m=g.text.style.fontSize;var p=y/m;u.vd.VV(\\"u_fontSizeFactor\\",p)}var b=_&&_.faceColor&&_.faceColor.normalize();if(n&&n===d.id&&_[\\"sel-highlight\\"]){this.yee(e.rp.rp,o,h.kd,1);this._ee=e;this.gee=o;this.hee=h.kd;this.dee=n;if(_[\\"sel-textFillColor\\"]){u.vd.VV(\\"u_highlightFillColor\\",_[\\"sel-textFillColor\\"])}if(_[\\"sel-textStrokeColor\\"]){u.vd.VV(\\"u_highlightStrokeColor\\",_[\\"sel-textStrokeColor\\"])}e.destroy()}if(b){u.vd.VV(\\"fillColor\\",b)}var x=_.borderColor&&_.borderColor.normalize();if(x){u.vd.VV(\\"strokeColor\\",x)}var C=_[\\"holoColor\\"]&&_[\\"holoColor\\"].normalize();var M=_[\\"label-bg\\"];if(M&&C){u.vd.VV(\\"backgroundColor\\",C)}else{u.vd.VV(\\"backgroundColor\\",[0,0,0,0])}o+=h.kd}}};return e}();var fillExtFragmentString=\\"precision mediump float;\\\\n\\\\n// uniform vec4 u_roofColor;\\\\n// uniform vec4 u_wallColor;\\\\nuniform vec3 u_lightColor;\\\\nuniform vec3 u_lightDir;\\\\nuniform mat4 u_normalMatrix;\\\\nuniform float u_opacity;\\\\nuniform float u_skyHeight;\\\\nuniform float u_viewHeight;\\\\nuniform vec2 u_skyBMRange;\\\\nuniform bool u_isPick;\\\\n\\\\nvarying vec3 v_normal;\\\\nvarying vec4 v_color;\\\\n// varying vec4 v_color;\\\\n// varying float v_flag;\\\\nvarying float v_fullHeight;\\\\nvarying float v_fragHeight;\\\\nvarying vec4 v_roofColor;\\\\nvarying vec4 v_pos;\\\\n\\\\nvoid main() {\\\\n    // 环境光\\\\n    vec3 ambientLightColor = vec3(1, 1, 1);\\\\n    float ambientStrength = 0.92;\\\\n    vec3 ambient = ambientStrength * ambientLightColor;\\\\n\\\\n    // 平行光的漫反射\\\\n    // vec3 norm = normalize(vec3(u_normalMatrix * vec4(v_normal, 1)));  //\\\\n    vec3 lightDir = u_lightDir;\\\\n    vec3 lightColor = vec3(1, 1, 1);\\\\n    float lightStrength = 0.1;\\\\n    vec3 norm = normalize(v_normal);\\\\n    float nDotL = max(dot(lightDir, norm), 0.0);\\\\n    vec3 diff = lightStrength * lightColor * nDotL;\\\\n\\\\n    // 如果是顶面，不同建筑物的顶面透明度是要有差异的\\\\n    float topOpacity = 1.0;\\\\n    if(v_fragHeight >= v_fullHeight) {\\\\n        // topOpacity = clamp((1.3 - v_fullHeight / 50.0), 0.9, 1.3);\\\\n    }\\\\n\\\\n    // 根据楼高判断颜色\\\\n    if(v_fragHeight >= v_fullHeight) {\\\\n        gl_FragColor = v_roofColor;\\\\n        // gl_FragColor = u_roofColor;\\\\n    } else {\\\\n        // 渐变色，暂时不用\\\\n        // float hFactor = v_fragHeight / v_fullHeight / 8.0 + 1.0;\\\\n        gl_FragColor = v_color;\\\\n    }\\\\n\\\\n    gl_FragColor.rgb *= diff + ambient;\\\\n    gl_FragColor.a *= u_opacity * topOpacity;\\\\n\\\\n    // 雾化\\\\n    // float y = v_pos.y / v_pos.w;\\\\n    // float fogHeight = 2. / u_viewHeight * 10.;  // 20 像素高度作为模糊处理\\\\n    // vec3 fogColor = vec3(0.95, 0.85, 0.95);\\\\n    if(u_skyHeight < 1.0) {\\\\n        // float fogFactor = smoothstep(u_skyHeight, u_skyHeight - fogHeight, y);\\\\n        // gl_FragColor.rgb = gl_FragColor.rgb * fogFactor + fogColor * (1.0 - fogFactor);\\\\n        // gl_FragColor.a *= fogFactor;\\\\n\\\\n        float cameraToFragDist = gl_FragCoord.z * v_pos.w;\\\\n        float fogFactor = smoothstep(u_skyBMRange.y, u_skyBMRange.x, cameraToFragDist);\\\\n        gl_FragColor.a *= fogFactor;\\\\n    }\\\\n    if(u_isPick) {\\\\n        gl_FragColor = vec4(v_roofColor.rgba / 255.0);\\\\n    }\\\\n    #ifdef OVERDRAW_INSPECTOR\\\\n        gl_FragColor = vec4(1.0);\\\\n    #endif\\\\n}\\\\n\\";var fillExtVertextString=\\"precision highp float;\\\\nattribute vec4 a_pos;\\\\n// attribute vec4 a_color;\\\\n// attribute float a_flag;\\\\nattribute vec3 a_normal;\\\\n\\\\nuniform mat4 u_matrix;\\\\nuniform vec2 u_localDeltaCenter;\\\\nuniform vec2 u_offset;\\\\nuniform float u_pitch;\\\\nuniform float u_heightFactor;\\\\nuniform vec4 u_roofColor;\\\\nuniform vec4 u_wallColor;\\\\n\\\\nvarying vec3 v_normal;\\\\nvarying vec4 v_color;\\\\nvarying vec4 v_roofColor;\\\\n// varying vec4 v_color;\\\\n// varying float v_height;\\\\n// varying float v_flag;\\\\nvarying float v_fullHeight;\\\\nvarying float v_fragHeight;\\\\nvarying vec4 v_pos;\\\\n\\\\nvoid main() {\\\\n    vec3 pos = vec3(\\\\n        a_pos.x + u_localDeltaCenter.x + u_offset.x,\\\\n        a_pos.y + u_localDeltaCenter.y + u_offset.y,\\\\n        // a_pos.z * u_heightFactor * min((u_pitch + 20.0) / 50.0, 0.8)\\\\n        a_pos.z * u_heightFactor\\\\n    );\\\\n    gl_Position = u_matrix * vec4(pos.xyz, 1);\\\\n\\\\n    // v_color = a_color;\\\\n    // v_flag = a_flag;\\\\n    v_pos = gl_Position;\\\\n    // vec4(a_pos, 1);\\\\n    v_fragHeight = a_pos.z;\\\\n    v_fullHeight = a_pos.w;\\\\n    // v_height = pos.z / a_pos.w;\\\\n    v_normal = normalize(a_normal);\\\\n    // 1.4 拿过来的\\\\n    v_roofColor = u_roofColor;\\\\n    v_color = u_roofColor + (u_wallColor - u_roofColor) * (a_pos.z == 0.0 ? 1.0 : 0.6);\\\\n}\\\\n\\";var fillExtPatternFragmentString=\\"precision mediump float;\\\\n\\\\n// uniform vec4 u_roofColor;\\\\n// uniform vec4 u_wallColor;\\\\nuniform vec3 u_lightColor;\\\\nuniform vec3 u_lightDir;\\\\nuniform mat4 u_normalMatrix;\\\\nuniform float u_opacity;\\\\nuniform float u_skyHeight;\\\\nuniform float u_viewHeight;\\\\nuniform vec2 u_skyBMRange;\\\\n\\\\n// pattern\\\\nuniform float u_resolution;\\\\nuniform sampler2D u_image;\\\\nuniform vec2 u_imageSize;\\\\n\\\\nvarying vec3 v_normal;\\\\nvarying vec4 v_color;\\\\n// varying vec4 v_color;\\\\n// varying float v_flag;\\\\nvarying float v_fullHeight;\\\\nvarying float v_fragHeight;\\\\nvarying vec4 v_roofColor;\\\\nvarying vec4 v_pos;\\\\nvarying vec3 v_coord;\\\\nvarying vec2 v_textureCoord;\\\\n\\\\n\\\\nvoid main() {\\\\n    // 环境光\\\\n    vec3 ambientLightColor = vec3(1, 1, 1);\\\\n    float ambientStrength = 0.92;\\\\n    vec3 ambient = ambientStrength * ambientLightColor;\\\\n\\\\n    // 平行光的漫反射\\\\n    // vec3 norm = normalize(vec3(u_normalMatrix * vec4(v_normal, 1)));  //\\\\n    vec3 lightDir = u_lightDir;\\\\n    vec3 lightColor = vec3(1, 1, 1);\\\\n    float lightStrength = 0.1;\\\\n    vec3 norm = normalize(v_normal);\\\\n    float nDotL = max(dot(lightDir, norm), 0.0);\\\\n    vec3 diff = lightStrength * lightColor * nDotL;\\\\n\\\\n    // 如果是顶面，不同建筑物的顶面透明度是要有差异的\\\\n    float topOpacity = 1.0;\\\\n    if(v_fragHeight >= v_fullHeight) {\\\\n        // topOpacity = clamp((1.3 - v_fullHeight / 50.0), 0.9, 1.3);\\\\n    }\\\\n\\\\n    // 根据楼高判断颜色\\\\n    if(v_fragHeight >= v_fullHeight) {\\\\n        // vec2 v_texture_pos = mod(vec2(v_coord.x,v_coord.y*-1.0)/u_resolution/u_imageSize,1.0);\\\\n        // gl_FragColor = texture2D(u_image, v_texture_pos);\\\\n        gl_FragColor = v_roofColor;\\\\n    } else if(v_textureCoord.x<0.0){\\\\n        gl_FragColor = v_color;\\\\n      \\\\n    }else{\\\\n        vec2 v_texture_pos = v_textureCoord;\\\\n        gl_FragColor = texture2D(u_image, v_texture_pos);\\\\n        gl_FragColor.a *= v_color.a;\\\\n    }\\\\n\\\\n    gl_FragColor.rgb *= diff + ambient;\\\\n    gl_FragColor.a *= u_opacity * topOpacity;\\\\n\\\\n    // 雾化\\\\n    // float y = v_pos.y / v_pos.w;\\\\n    // float fogHeight = 2. / u_viewHeight * 10.;  // 20 像素高度作为模糊处理\\\\n    // vec3 fogColor = vec3(0.95, 0.85, 0.95);\\\\n    if(u_skyHeight < 1.0) {\\\\n        // 片元颜色 = 物体颜色 * 雾化因子 + 雾的颜色 * （1 - 雾化因子）\\\\n        // float fogFactor = smoothstep(u_skyHeight, u_skyHeight - fogHeight, y);\\\\n        // gl_FragColor.rgb = gl_FragColor.rgb * fogFactor + fogColor * (1.0 - fogFactor);\\\\n        // gl_FragColor.a *= fogFactor;\\\\n\\\\n        float cameraToFragDist = gl_FragCoord.z * v_pos.w;\\\\n        float fogFactor = smoothstep(u_skyBMRange.y, u_skyBMRange.x, cameraToFragDist);\\\\n        gl_FragColor.a *= fogFactor;\\\\n    }\\\\n\\\\n    #ifdef OVERDRAW_INSPECTOR\\\\n        gl_FragColor = vec4(1.0);\\\\n    #endif\\\\n}\\\\n\\";var fillExtPatternVertextString=\\"precision highp float;\\\\nattribute vec4 a_pos;\\\\n// attribute vec4 a_color;\\\\n// attribute float a_flag;\\\\nattribute vec3 a_normal;\\\\nattribute vec2 a_textureCoord;\\\\n\\\\nuniform mat4 u_matrix;\\\\nuniform vec2 u_localDeltaCenter;\\\\nuniform vec2 u_offset;\\\\nuniform float u_pitch;\\\\nuniform float u_heightFactor;\\\\nuniform vec4 u_roofColor;\\\\nuniform vec4 u_wallColor;\\\\n\\\\nvarying vec3 v_normal;\\\\nvarying vec4 v_color;\\\\nvarying vec4 v_roofColor;\\\\n// varying vec4 v_color;\\\\n// varying float v_height;\\\\n// varying float v_flag;\\\\nvarying float v_fullHeight;\\\\nvarying float v_fragHeight;\\\\nvarying vec4 v_pos;\\\\nvarying vec3 v_coord;\\\\nvarying vec2 v_textureCoord;\\\\n\\\\n\\\\nvoid main() {\\\\n    vec3 pos = vec3(\\\\n        a_pos.x + u_localDeltaCenter.x + u_offset.x,\\\\n        a_pos.y + u_localDeltaCenter.y + u_offset.y,\\\\n        // a_pos.z * u_heightFactor * min((u_pitch + 20.0) / 50.0, 0.8)\\\\n        a_pos.z * u_heightFactor\\\\n    );\\\\n    gl_Position = u_matrix * vec4(pos.xyz, 1);\\\\n\\\\n    // v_color = a_color;\\\\n    // v_flag = a_flag;\\\\n    v_coord = pos;\\\\n    v_textureCoord = a_textureCoord;\\\\n    v_pos = gl_Position;\\\\n    // vec4(a_pos, 1);\\\\n    v_fragHeight = a_pos.z;\\\\n    v_fullHeight = a_pos.w;\\\\n    // v_height = pos.z / a_pos.w;\\\\n    v_normal = normalize(a_normal);\\\\n    // 1.4 拿过来的\\\\n    v_roofColor = u_roofColor;\\\\n    v_color = u_roofColor + (u_wallColor - u_roofColor) * (a_pos.z == 0.0 ? 1.0 : 0.6);\\\\n}\\\\n\\";var Color=M[\\"Color\\"];function linearColor(e,i,a){var n=[0,0,0,1];forEach(e.rgba,function(e,r){var t=i.rgba[r];n[r]=linearNumber(e,t,a)/255});return n}function linearNumber(e,r,t){var i=r-e;return e+i*t}var Property=function(){function e(e,r,t){if(t===void 0){t=\\"other\\"}this.key=e;this.type=r;this.sort=t}e.prototype.An=function(e,r,t,i,a){var n=this.Tn(e,r,t,i);if(!n){return null}var o=n[this.key];if(o&&o.rgba){return this.In(o.rgba)}else{return o}};e.prototype.In=function(e){return[e[0]/255,e[1]/255,e[2]/255,e[3]/255]};e.prototype.Dn=function(e,r,t,i,a){var n=Math.floor(i);var o=Math.ceil(i);var f=i-n<.8?n:o;var s=this.Tn(e,r,t,n);var u=this.Tn(e,r,t,o);if(!s&&f===n){return undefined}if(!s&&!u){return undefined}if(s&&!u&&f===o){return undefined}if(!s&&u&&n===f){return undefined}var l=i-n;if(!s){l=(l-.8)/.2}l=Math.max(l,0);if(this.type===\\"const\\"){return this.Pn(e,r,t,f)}if(this.type===\\"linear\\"&&n===o){return this.Pn(e,r,t,n)}if(!s&&u){var v=u[this.key];if(typeof v===\\"number\\"){var c=0;return linearNumber(c,v,l)}var h=v.normalize();if(h&&this.sort!==\\"line\\"){h[3]=h[3]*l}return h}if(s&&!u){return this.Pn(e,r,t,n)}var d=s[this.key];var _=u[this.key];if(!d){if(typeof _===\\"number\\"){var g=0;return linearNumber(g,_,l)}var h=_.normalize();if(this.sort!==\\"line\\"){h[3]=h[3]*l}return h}else if(typeof d===\\"number\\"){return linearNumber(d,_,l)}else{return linearColor(d,_,l)}};e.prototype.Pn=function(e,r,t,i){var a;switch(this.sort){case\\"line\\":a=this.jn(e,r,t,i);break;case\\"other\\":a=this.On(e,r,t,i);break;default:a=this.On(e,r,t,i)}return a};e.prototype.Tn=function(e,r,t,i){var a;switch(this.sort){case\\"line\\":a=this.Fn(e,r,t,i);break;case\\"other\\":a=this.En(e,r,t,i);break;default:a=this.En(e,r,t,i)}return a};e.prototype.Fn=function(e,r,t,i){var a=e.dn(r,t,i);if(this.Nn(a)){return a[0]}return undefined};e.prototype.En=function(e,r,t,i){var a=e.dn(r,t,i);if(this.Nn(a)){return a}return undefined};e.prototype.jn=function(e,r,t,i){var a=Math.floor(i);var n=Math.ceil(i);var o=e.dn(r,t,a);if(o){var f=o[0][this.key];if(f&&f.normalize){return f.normalize()}return f}else{var s=e.dn(r,t,n);var f=s[0][this.key];if(f&&f.normalize){return f.normalize()}return f}};e.prototype.On=function(e,r,t,i){var a=Math.floor(i);var n=Math.ceil(i);var o=e.dn(r,t,a);if(o){var f=o[this.key];if(f instanceof Color){return f.normalize()}return f}else{var s=e.dn(r,t,n);var f=s[this.key];if(f instanceof Color){return f.normalize()}return f}};return e}();var LineProperty=function(i){__extends(e,i);function e(e,r){var t=i.call(this,e,r,\\"line\\")||this;t.key=e;t.type=r;return t}e.prototype.Nn=function(e){return e&&e[0].roadColor};return e}(Property);var LineBorderProperty=function(i){__extends(e,i);function e(e,r){var t=i.call(this,e,r,\\"line\\")||this;t.key=e;t.type=r;return t}e.prototype.Nn=function(e){return e&&e[0].borderColor};return e}(Property);var FillProperty=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Nn=function(e){return e&&e.faceColor};return r}(Property);var BuildingProperty=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Nn=function(e){return e&&e.faceColor};return r}(Property);var BuildingBorderProperty=function(e){__extends(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.Nn=function(e){return e&&e.wallColor2};return r}(Property);var fillExtUniforms={u_skyBMRange:\\"vec2\\",u_skyHeight:\\"float\\",u_viewHeight:\\"float\\",u_heightFactor:\\"float\\",u_roofColor:\\"vec4\\",u_wallColor:\\"vec4\\",u_lightDir:\\"vec3\\",u_opacity:\\"float\\",u_pitch:\\"float\\",u_offset:\\"vec2\\",u_matrix:\\"mat4\\",u_normalMatrix:\\"mat4\\",u_localDeltaCenter:\\"vec2\\",u_isPick:\\"bool\\"};var fillExtAttributes={a_pos:{Me:\\"float32\\",Oe:\\"vec4\\"},a_normal:{Me:\\"float32\\",Oe:\\"vec3\\"}};var fillExt={uniforms:fillExtUniforms,attributes:fillExtAttributes,vertexSource:fillExtVertextString,fragmentSource:fillExtFragmentString};var getFillExtUniformValues=function(e,r,t,i,a,n,o){if(t===void 0){t=[0,0]}var f=e.viewState.zoom;var s=e.viewState.pitch;var u=e.viewState.size[1];var l=[16,zoomRange[1]];var v=1;var c=1;if(i.layer.CLASS_NAME===\\"AMap.Buildings\\"){l=i.zooms;v=i.opacity;c=i.heightFactor}c=c*Math.min((s+20)/50,.8);if(i.layer.CLASS_NAME===\\"AMap.MapboxVectorTileLayer\\"||i.layer.CLASS_NAME===\\"AMap.VectorLayer\\"){l=i.zooms;v=i.opacity;c=1}if(l[0]>f||l[1]<f){return}return{u_skyBMRange:o,u_skyHeight:n,u_viewHeight:u,u_heightFactor:c,u_roofColor:a.roofColor,u_wallColor:a.wallColor,u_lightDir:calcSunX(e.viewState.center),u_opacity:v,u_pitch:s,u_matrix:e.viewState.mvpMatrix,u_offset:[0,0],u_normalMatrix:e.viewState.modelMatrix,u_localDeltaCenter:t,u_isPick:false}};function calcSunX(e){var r=new Date;var t=r.getHours()+r.getMinutes()/60;var i=-15*t+300;var a=Math.sin(e[0]-i);return[a,1,.75]}var fillExtPatternUniforms={u_skyBMRange:\\"vec2\\",u_skyHeight:\\"float\\",u_viewHeight:\\"float\\",u_heightFactor:\\"float\\",u_roofColor:\\"vec4\\",u_wallColor:\\"vec4\\",u_lightDir:\\"vec3\\",u_opacity:\\"float\\",u_pitch:\\"float\\",u_offset:\\"vec2\\",u_matrix:\\"mat4\\",u_normalMatrix:\\"mat4\\",u_localDeltaCenter:\\"vec2\\",u_image:\\"sampler2D\\",u_imageSize:\\"vec2\\",u_resolution:\\"float\\"};var fillExtPatternAttributes={a_pos:{Me:\\"float32\\",Oe:\\"vec4\\"},a_normal:{Me:\\"float32\\",Oe:\\"vec3\\"},a_textureCoord:{Me:\\"uint16\\",Oe:\\"vec2\\"}};var fillExtPattern={uniforms:fillExtPatternUniforms,attributes:fillExtPatternAttributes,vertexSource:fillExtPatternVertextString,fragmentSource:fillExtPatternFragmentString};var fillExtProperties={texture:new BuildingProperty(\\"texture\\",\\"const\\")};var getFillExtPatternUniformValues=function(e,r,t,i,a,n,o,f){if(t===void 0){t=[0,0]}var s=e.map.bZ.MZ.drawMode===\\"fast\\"?e.viewState.optimalZoom:e.viewState.zoom;var u=e.viewState.pitch;var l=e.viewState.size[1];var v=[16,zoomRange[1]];var c=1;var h=1;var d;if(i.layer.CLASS_NAME===\\"AMap.Buildings\\"){v=i.zooms;c=i.opacity;h=i.heightFactor}h=h*Math.min((u+20)/50,.8);if(i.layer.CLASS_NAME===\\"AMap.MapboxVectorTileLayer\\"||i.layer.CLASS_NAME===\\"AMap.VectorLayer\\"){v=i.zooms;c=i.opacity;d=r.bz;h=1}if(v[0]>s||v[1]<s){return}var _=r.mainkey,g=r.subkey,y=r.minzoom;if(f){d=fillExtProperties.texture.An(f,_,g,s,y)}if(!d){return}return{u_skyBMRange:o,u_skyHeight:n,u_viewHeight:l,u_heightFactor:h,u_roofColor:a.roofColor,u_wallColor:a.wallColor,u_lightDir:calcSunX(e.viewState.center),u_opacity:c,u_pitch:u,u_matrix:e.viewState.mvpMatrix,u_offset:[0,0],u_normalMatrix:e.viewState.modelMatrix,u_localDeltaCenter:t,u_image:d,u_imageSize:[1,1],u_resolution:e.viewState.optimalResolution}};var find$1=M[\\"lodash\\"][\\"find\\"];var map$1=M[\\"lodash\\"][\\"map\\"];var TileState=M[\\"TileState\\"];var vector$2=M[\\"vector\\"];var BuildingRender=function(r){__extends(e,r);function e(){var e=r.call(this)||this;return e}e.prototype.renderFrame=function(e,r,t,i,a){if(!r.s_){return}if(!a.map.mapStyle.vn){return}var n=r.tiles;var o={};for(var f=0,s=n;f<s.length;f++){var u=s[f];if(u.status===TileState.LOADED){var l=u.zo.z;if(!o[l]){o[l]=[]}o[l].push(u)}}var v=i.layer;var c=v.uo.getSource(v.co());var h=c.ra(t.viewState.optimalZoom);var d=map$1(Object.keys(o),function(e){return parseInt(e,10)});d.sort(function(e,r){return e-r});var _=d.indexOf(h);if(_>=0){d.splice(_,1);d.push(h)}if(i.ce){e.context.clear({depth:true})}for(var g=0,y=d;g<y.length;g++){var m=y[g];var p=o[m];for(var b=0,x=p;b<x.length;b++){var u=x[b];if(u.status!==TileState.LOADED){continue}this.S_(e,u,t,i,a,true)}for(var C=0,M=p;C<M.length;C++){var u=M[C];if(u.status!==TileState.LOADED){continue}this.S_(e,u,t,i,a)}}};e.prototype.S_=function(e,r,t,i,a,n){if(n===void 0){n=false}var o=r.data;var f=t.map;var O=t.viewState;var s=t.viewState.size;var u=f.getView();var l={roofColor:i.roofColor,wallColor:i.wallColor};var v=f.getBuildingColor();var c=1;if(t.viewState.viewMode===\\"3D\\"){c=u.EF()}else{return}var h=u.X(s[0]/2,u.Uu()+5);var d=u.X(s[0]/2,u.Uu()-5);var _=u.pz().getPosition();var g=h[0]-_[0];var y=h[1]-_[1];var m=d[0]-_[0];var p=d[1]-_[1];var b=[Math.sqrt(g*g+y*y),Math.sqrt(m*m+p*p)];for(var x=0,C=o;x<C.length;x++){var M=C[x];var S=M.A_;if(!S){continue}var B=M.C_;S.upload(e.context,true);var w=S.zs;var k=find$1(t.map.getLayers(),function(e){return e.CLASS_NAME===\\"AMap.IndoorMap\\"});var T=void 0;if(k){T=k.yD().show}for(var A=0,I=B.jc;A<I.length;A++){var $=I[A];var F=f.mapStyle.vn.dn($.mainkey,$.subkey,O.zoom);var P={};P.roofColor=$.roofColor||l.roofColor||v.roofColor||F&&F.faceColor&&vector$2.Up(F.faceColor.rgba,255);P.wallColor=$.wallColor||l.wallColor||v.wallColor||F&&F.faceColor&&vector$2.Up(F.borderColor.rgba,255);if(!P.wallColor||!P.roofColor){return}var D=fillExtProperties.texture.An(a.map.mapStyle,$.mainkey,$.subkey,t.viewState.zoom,$.minzoom);if(!k||!($.bz&&T)){if(D){var L=getFillExtPatternUniformValues(t,$,r.Sa,i,P,c,b,a.map.mapStyle);if(L){var E=a.map.getImage(L.u_image);if(E){L.u_image=E;L.u_imageSize=E.size;var R=e.sH();R.Ce(L,{a_pos:{type:\\"vec4\\",Re:w.size,offset:0,buffer:w},a_normal:{type:\\"vec3\\",Re:w.size,offset:4*4,buffer:w},a_textureCoord:{type:\\"vec2\\",Re:w.size,offset:4*7,buffer:w}},$.length,undefined,\\"TRIANGLES\\",i.depthTest,n?ColorMode.disabled:ColorMode.Si,undefined,CullFaceMode.back,$.offset)}else if(L.u_image&&a.map.I_&&!a.map.I_.MH(L.u_image)){a.map.addImage(L.u_image,{url:L.u_image,filter:\\"LINEAR\\",wrap:\\"REPEAT\\",cb:function(){return a.map.setNeedUpdate(true)}})}}}else{var L=getFillExtUniformValues(t,$,r.Sa,i,P,c,b);if(L){var R=e.k_();R.Ce(L,{a_pos:{type:\\"vec4\\",Re:w.size,offset:0,buffer:w},a_normal:{type:\\"vec3\\",Re:w.size,offset:4*4,buffer:w}},$.length,undefined,\\"TRIANGLES\\",i.depthTest,n?ColorMode.disabled:ColorMode.Si,undefined,CullFaceMode.back,$.offset)}}}}}};return e}(LayerRender);var isSupportFloat32Array=typeof Float32Array!==\\"undefined\\";if(!isSupportFloat32Array){window[\\"Float32Array\\"]=undefined;setMatrixArrayType(Array)}var EPSILON=1e-6;var ARRAY_TYPE=typeof Float32Array!==\\"undefined\\"?Float32Array:Array;function setMatrixArrayType(e){ARRAY_TYPE=e}if(!Math.hypot)Math.hypot=function(){var e=0,r=arguments.length;while(r--){e+=arguments[r]*arguments[r]}return Math.sqrt(e)};function equals(e,r){var t=e[0],i=e[1],a=e[2],n=e[3];var o=e[4],f=e[5],s=e[6],u=e[7];var l=e[8],v=e[9],c=e[10],h=e[11];var d=e[12],_=e[13],g=e[14],y=e[15];var m=r[0],p=r[1],b=r[2],x=r[3];var C=r[4],M=r[5],S=r[6],w=r[7];var k=r[8],T=r[9],A=r[10],I=r[11];var $=r[12],F=r[13],P=r[14],L=r[15];return Math.abs(t-m)<=EPSILON*Math.max(1,Math.abs(t),Math.abs(m))&&Math.abs(i-p)<=EPSILON*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(a-b)<=EPSILON*Math.max(1,Math.abs(a),Math.abs(b))&&Math.abs(n-x)<=EPSILON*Math.max(1,Math.abs(n),Math.abs(x))&&Math.abs(o-C)<=EPSILON*Math.max(1,Math.abs(o),Math.abs(C))&&Math.abs(f-M)<=EPSILON*Math.max(1,Math.abs(f),Math.abs(M))&&Math.abs(s-S)<=EPSILON*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(u-w)<=EPSILON*Math.max(1,Math.abs(u),Math.abs(w))&&Math.abs(l-k)<=EPSILON*Math.max(1,Math.abs(l),Math.abs(k))&&Math.abs(v-T)<=EPSILON*Math.max(1,Math.abs(v),Math.abs(T))&&Math.abs(c-A)<=EPSILON*Math.max(1,Math.abs(c),Math.abs(A))&&Math.abs(h-I)<=EPSILON*Math.max(1,Math.abs(h),Math.abs(I))&&Math.abs(d-$)<=EPSILON*Math.max(1,Math.abs(d),Math.abs($))&&Math.abs(_-F)<=EPSILON*Math.max(1,Math.abs(_),Math.abs(F))&&Math.abs(g-P)<=EPSILON*Math.max(1,Math.abs(g),Math.abs(P))&&Math.abs(y-L)<=EPSILON*Math.max(1,Math.abs(y),Math.abs(L))}function create(){var e=new ARRAY_TYPE(3);if(ARRAY_TYPE!=Float32Array){e[0]=0;e[1]=0;e[2]=0}return e}function copy(e,r){e[0]=r[0];e[1]=r[1];e[2]=r[2];return e}function set(e,r,t,i){e[0]=r;e[1]=t;e[2]=i;return e}function subtract(e,r,t){e[0]=r[0]-t[0];e[1]=r[1]-t[1];e[2]=r[2]-t[2];return e}var forEach$1=function(){var s=create();return function(e,r,t,i,a,n){var o,f;if(!r){r=3}if(!t){t=0}if(i){f=Math.min(i*r+t,e.length)}else{f=e.length}for(o=t;o<f;o+=r){s[0]=e[o];s[1]=e[o+1];s[2]=e[o+2];a(s,s,n);e[o]=s[0];e[o+1]=s[1];e[o+2]=s[2]}return e}}();var isSupportFloat64Array=typeof Float64Array!==\\"undefined\\";var isSupportFloat32Array$1=typeof Float32Array!==\\"undefined\\";if(isSupportFloat64Array){setMatrixArrayType(Float64Array)}else if(isSupportFloat32Array$1){setMatrixArrayType(Float32Array)}else{window[\\"Float32Array\\"]=undefined;setMatrixArrayType(Array)}var DomUtil=AMap[\\"DomUtil\\"];var CustomRender=function(r){__extends(e,r);function e(){var e=r.call(this)||this;e.type=\\"customLayer\\";e.OF=create();e.VM=create();return e}e.prototype.renderFrame=function(e,r,t,i){if(!i.alwaysRender&&this.OF&&this.EI&&this.BF&&this.NF&&(equals(this.NF,t.viewState.mvpMatrix)||t.map.TL())){var a=Math.pow(2,t.viewState.zoom-this.EI);subtract(this.VM,t.viewState.centerCoord,this.OF);set(this.VM,-(this.VM[0]/this.BF)*a,this.VM[1]/this.BF*a,0);if(a!==1){i.kv.style[DomUtil.kL]=\\"scale3d(\\"+a+\\",\\"+a+\\",1)\\"}i.kv.style.top=this.VM[1]+\\"px\\";i.kv.style.left=this.VM[0]+\\"px\\"}else{var n=i.layer;copy(this.OF,t.viewState.centerCoord);this.EI=t.viewState.zoom;this.NF=t.viewState.mvpMatrix;this.BF=t.viewState.resolution;if(n[\\"render\\"]){var o=n.getLayerConfig().zooms;if(t.viewState.zoom>=o[0]&&t.viewState.zoom<=o[1]){n.canvas.style.visibility=\\"visible\\";n[\\"render\\"]()}else{if(n&&n.canvas&&n.canvas){n.canvas.style.visibility=\\"hidden\\"}}}i.kv.style[DomUtil.kL]=\\"\\";i.kv.style.top=\\"\\";i.kv.style.left=\\"\\";i.kv.style.height=\\"\\";i.kv.style.visibility=\\"\\"}};return e}(LayerRender);var GLCustomRender=function(r){__extends(e,r);function e(){var e=r.call(this)||this;e.kC=true;return e}e.prototype.renderFrame=function(e,r,t,i){if(!e){return}var a=e.context;var n=a.gl;var o=i.layer;if(this.kC){this.kC=false;o.init(n)}if(o.render){var f=o.getLayerConfig().zooms;if(t.viewState.zoom>=f[0]&&t.viewState.zoom<=f[1]){o.render(n,t,t.viewState,a);a.setDirty()}}return};return e}(LayerRender);var ImageRender=function(r){__extends(e,r);function e(){var e=r.call(this)||this;return e}e.prototype.renderFrame=function(e,r,t,i){var a=e.context;var n=e.Gn();var o=i.layer.getLayerConfig().zooms;if(t.viewState.zoom<o[0]||t.viewState.zoom>o[1]){return}var f=t.viewState;var s=t.map;var u=1;if(f.viewMode===\\"3D\\"){u=s.getView().EF()}var l=s.JF(t.viewState.optimalZoom);var v=l||[1,1,1,0];if(i.ce){e.context.clear({depth:true})}n.Ce({u_skyColor:v,u_skyHeight:u,u_viewHeight:f.size[1],u_opacity:i.opacity,u_texture:r.texture,u_mvpMatrix:f.mvpMatrix,u_localDeltaCenter:r.Sa,u_flterFlag:false,u_colorscale:null},{a_Position:{type:\\"vec4\\",buffer:r.zs,Re:0,offset:0}},6,undefined,undefined,i.depthTest,ColorMode.Si,i.rejectMapMask||!t.map.getMask()?undefined:StencilMode.writeWithStencil);return};return e}(LayerRender);var NebulaTagType;(function(e){e[\\"LITE\\"]=\\"lite\\";e[\\"LEFT\\"]=\\"left\\";e[\\"ALL\\"]=\\"all\\";e[\\"NONE\\"]=\\"\\"})(NebulaTagType||(NebulaTagType={}));var extend=function(e){var r=[];for(var t=1;t<arguments.length;t++){r[t-1]=arguments[t]}var i=Array.prototype.slice.call(arguments,1);var a;var n;var o;for(a=0,n=i.length;a<n;a=a+1){o=i[a]||{};for(var f in o){if(o.hasOwnProperty(f)){var s=o[f];if(typeof s!==\\"function\\"||!e.prototype){e[f]=s}else{e.prototype[f]=s}}}}return e};function isBrowser(){return typeof window!==\\"undefined\\"&&typeof document!==\\"undefined\\"}function isWasmSuppport(){try{if(typeof WebAssembly===\\"object\\"&&typeof WebAssembly.instantiate===\\"function\\"&&TextDecoder&&TextEncoder){var e=new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0]));if(e instanceof WebAssembly.Module){return new WebAssembly.Instance(e)instanceof WebAssembly.Instance}}}catch(e){}return false}var testWepP=function(e){var r=new Image;r.src=\\"\\"+\\"AgSSNtse/cXjxyCCmrYNWPwmHRH9jwMA\\";r.onload=r.onerror=function(){e(r.height===2)}};function isWorkerEnv(){try{var e=!!document;return false}catch(e){return true}}function getSupport(e){var r={runSupport:(new Date).getTime()};var O=false;var B=false;var D=false;var U=false;var N=false;var t=isWasmSuppport();var i=navigator.userAgent.toLowerCase();var a=function(e){return i.indexOf(e)!==-1};var f=true;var n=a(\\"macintosh\\");var o=a(\\"ipad;\\")||a(\\"ipad \\"),H=a(\\"ipod touch;\\"),s=a(\\"iphone;\\")||a(\\"iphone \\"),u=s||o||H,l=(n||u)&&a(\\"safari\\")&&a(\\"version/\\"),z=a(\\"macwechat\\"),G=a(\\"windowswechat\\");var v={YV:N,WV:n,Ue:O,g:U,$e:B,scale:1,HV:D,DW:isWorkerEnv(),AJ:t,safari:l,AQ:z,gQ:G,amapRunTime:r};if(isBrowser()){var c=window,h=document,d=h.documentElement,_=/([a-z0-9]*\\\\d+[a-z0-9]*)/,j=function(e){if(!e){return null}e=e.toLowerCase();var r=null;var t=e.match(/angle \\\\((.*)\\\\)/);if(t){e=t[1];e=e.replace(/\\\\s*direct3d.*$/,\\"\\")}e=e.replace(/\\\\s*\\\\([^\\\\)]*wddm[^\\\\)]*\\\\)/,\\"\\");if(e.indexOf(\\"intel\\")>=0){r=[\\"Intel\\"];if(0<=e.indexOf(\\"mobile\\")){r.push(\\"Mobile\\")}if(0<=e.indexOf(\\"gma\\")||0<=e.indexOf(\\"graphics media accelerator\\")){r.push(\\"GMA\\")}if(0<=e.indexOf(\\"haswell\\")){r.push(\\"Haswell\\")}else if(0<=e.indexOf(\\"ivy\\")){r.push(\\"HD 4000\\")}else if(0<=e.indexOf(\\"sandy\\")){r.push(\\"HD 3000\\")}else if(0<=e.indexOf(\\"ironlake\\")){r.push(\\"HD\\")}else{if(0<=e.indexOf(\\"hd\\")){r.push(\\"HD\\")}var i=e.match(_);if(i){r.push(i[1].toUpperCase())}}r=r.join(\\" \\");return r}if(e.indexOf(\\"nvidia\\")>=0||e.indexOf(\\"quadro\\")>=0||e.indexOf(\\"geforce\\")>=0||e.indexOf(\\"nvs\\")>=0){r=[\\"nVidia\\"];if(0<=e.indexOf(\\"geforce\\")){r.push(\\"geForce\\")}if(0<=e.indexOf(\\"quadro\\")){r.push(\\"Quadro\\")}if(0<=e.indexOf(\\"nvs\\")){r.push(\\"NVS\\")}if(e.match(/\\\\bion\\\\b/)){r.push(\\"ION\\")}if(e.match(/gtx\\\\b/)){r.push(\\"GTX\\")}else if(e.match(/gts\\\\b/)){r.push(\\"GTS\\")}else if(e.match(/gt\\\\b/)){r.push(\\"GT\\")}else if(e.match(/gs\\\\b/)){r.push(\\"GS\\")}else if(e.match(/ge\\\\b/)){r.push(\\"GE\\")}else if(e.match(/fx\\\\b/)){r.push(\\"FX\\")}var i=e.match(_);if(i){r.push(i[1].toUpperCase().replace(\\"GS\\",\\"\\"))}if(0<=e.indexOf(\\"titan\\")){r.push(\\"TITAN\\")}else if(0<=e.indexOf(\\"ti\\")){r.push(\\"Ti\\")}r=r.join(\\" \\");return r}if(e.indexOf(\\"amd\\")>=0||e.indexOf(\\"ati\\")>=0||e.indexOf(\\"radeon\\")>=0||e.indexOf(\\"firegl\\")>=0||e.indexOf(\\"firepro\\")>=0){r=[\\"AMD\\"];if(0<=e.indexOf(\\"mobil\\")){r.push(\\"Mobility\\")}var a=e.indexOf(\\"radeon\\");if(0<=a){r.push(\\"Radeon\\")}if(0<=e.indexOf(\\"firepro\\")){r.push(\\"FirePro\\")}else if(0<=e.indexOf(\\"firegl\\")){r.push(\\"FireGL\\")}if(0<=e.indexOf(\\"hd\\")){r.push(\\"HD\\")}if(a>=0){e=e.substring(a)}var i=e.match(_);if(i){r.push(i[1].toUpperCase().replace(\\"HD\\",\\"\\"))}r=r.join(\\" \\");return r}return e.substring(0,100)},V=\\"google swiftshader;microsoft basic render driver;vmware svga 3d;Intel 965GM;Intel B43;Intel G41;Intel G45;Intel G965;Intel GMA 3600;Intel Mobile 4;Intel Mobile 45;Intel Mobile 965\\".split(\\";\\"),g=\\"ActiveXObject\\"in c,y=window[\\"detectRetina\\"]==false?false:\\"devicePixelRatio\\"in c&&c[\\"devicePixelRatio\\"]>1||g&&\\"matchMedia\\"in c&&c.matchMedia(\\"(min-resolution:144dpi)\\")&&c.matchMedia(\\"(min-resolution:144dpi)\\").matches,m=a(\\"windows nt\\"),W=i.search(/windows nt [1-5]\\\\./)!==-1,q=i.search(/windows nt 5\\\\.[12]/)!==-1,Y=a(\\"windows nt 10\\"),Z=a(\\"windows phone\\"),K=a(\\"Mb2345Browser\\"),X=u&&i.search(/ os [456]_/)!==-1,J=u&&i.search(/ os [4-8]_/)!==-1,Q=u&&i.search(/ os [78]_/)!==-1,ee=u&&a(\\"os 8_\\"),re=u&&a(\\"os 10_\\"),p=a(\\"android\\");var b=0;if(p){b=parseInt(i.split(\\"android\\")[1])||0}var te=p&&b<4,ie=p&&b>=5,ae=ie||i.search(/android 4.4/)!==-1,x=p?\\"android\\":u?\\"ios\\":m?\\"windows\\":n?\\"mac\\":\\"other\\",ne=g&&!c[\\"XMLHttpRequest\\"],oe=g&&!h.querySelector,C=g&&!h.addEventListener,M=g&&a(\\"msie 9\\"),fe=g&&a(\\"msie 10\\"),se=g&&a(\\"rv:11\\"),ue=C||M,S=a(\\"edge\\"),le=a(\\"qtweb\\"),w=a(\\"ucbrowser\\"),ve=a(\\"alipay\\")||p&&w,ce=a(\\"miuibrowser\\"),he=a(\\"micromessenger\\"),de=a(\\"dingtalk\\"),_e=a(\\"mqqbrowser\\"),ge=a(\\"baidubrowser\\"),ye=a(\\"crios/\\"),k=a(\\"chrome/\\"),me=(k||ye)&&a(\\"chromium\\"),pe=!me&&(k&&parseInt(i.split(\\"chrome/\\")[1])>30||ye&&parseInt(i.split(\\"crios/\\")[1])>30),be=a(\\"firefox\\"),xe=be&&parseInt(i.split(\\"firefox/\\")[1])>27,Ce=l&&parseInt(i.split(\\"version/\\")[1])>7,Me=u&&a(\\"aliapp\\"),T=p||u||Z||a(\\"mobile\\"),Se=\\"ontouchstart\\"in h,we=c[\\"navigator\\"]&&c[\\"navigator\\"][\\"msPointerEnabled\\"]&&!!c[\\"navigator\\"][\\"msMaxTouchPoints\\"],ke=c[\\"navigator\\"]&&!!c[\\"navigator\\"][\\"maxTouchPoints\\"],Te=!Se&&(ke||we),Ae=Se||Te,Ie=function(){if(!T){return c.devicePixelRatio||1}var e=document.getElementsByTagName(\\"meta\\");if(window.parent&&window.parent!==window){try{if(window.parent.location.origin===window.location.origin){e=window.parent.document.getElementsByTagName(\\"meta\\")}else{return 1}}catch(e){return 1}}for(var r=e.length-1;r>=0;r-=1){if(e[r].name===\\"viewport\\"){var t=e[r].content;var i=void 0,a=void 0,n=void 0;if(t.indexOf(\\"initial-scale\\")!==-1){i=parseFloat(t.split(\\"initial-scale=\\")[1])}if(t.indexOf(\\"minimum-scale\\")!==-1){a=parseFloat(t.split(\\"minimum-scale=\\")[1])}else{a=0}if(t.indexOf(\\"maximum-scale\\")!==-1){n=parseFloat(t.split(\\"maximum-scale=\\")[1])}else{n=Infinity}if(i){if(n>=a){if(i>n){return n}else if(i<a){return a}else{return i}}else{console&&console.log&&console.log(\\"viewport参数不合法\\");return null}}else{if(n>=a){if(a>=1){return 1}else{return Math.min(n,1)}}else{console&&console.log&&console.log(\\"viewport参数不合法\\");return null}}}}return undefined},A=Ie(),$e=y&&(!T||!!A&&A>=1),Fe=g&&\\"transition\\"in d.style,Pe=!!h.createElementNS&&!!h.createElementNS(\\"http://www.w3.org/2000/svg\\",\\"svg\\")[\\"createSVGRect\\"],I=h.createElement(\\"canvas\\"),Le=!!(I&&I.getContext),Ee=window[\\"URL\\"]||window[\\"webkitURL\\"],Re=false;var Oe=window[\\"disableWorker\\"]!==true&&!g&&!(w&&p&&!pe)&&window[\\"Worker\\"]&&Ee&&Ee[\\"createObjectURL\\"]&&window[\\"Blob\\"],$=\\"\\",F=\\"\\",P=0,Be=window[\\"higtQualityRender\\"]==false?y?false:true:true,De=window[\\"movingDraw\\"],L=window[\\"forceWebGL\\"]?{alpha:true,antialias:Be,depth:true,stencil:true}:{alpha:true,antialias:Be,depth:true,stencil:true},Ue=function(){if(!Le||!Oe){return false}var e=[\\"webgl\\",\\"experimental-webgl\\",\\"moz-webgl\\"];var r=null;for(var t=0;t<e.length;t+=1){try{var i=L;r=I.getContext(e[t],i)}catch(e){}if(!r){continue}else{if(r.drawingBufferWidth!==I.width||r.drawingBufferHeight!==I.height){return false}if(!r.getShaderPrecisionFormat||!r.getParameter||!r.getExtension){return false}P=r.getParameter(r.MAX_RENDERBUFFER_SIZE);var a=r.getParameter(r.MAX_VIEWPORT_DIMS);if(!a){return false}P=Math.min(P,a[0],a[1]);if(l&&x===\\"mac\\"){P=Math.min(P,4096)}var n=Math.max(screen.width,screen.height);if($e){n*=Math.min(2,window.devicePixelRatio||1)}if(n>P){return false}if(23>r.getShaderPrecisionFormat(35632,36338).precision||23>r.getShaderPrecisionFormat(35633,36338).precision){return false}F=r.getExtension(\\"WEBGL_debug_renderer_info\\")?r.getParameter(37446):null;var o=j(F);if(o){if(o.indexOf(\\"google swiftshader\\")>-1){f=false;return false}if(-1!==V.indexOf(o)){return false}}$=e[t];return true}}return false},Ne=Ue(),He=e[8]!==undefined?e[8]:true,ze=window[\\"Uint8Array\\"]&&He&&!window[\\"forbidenWebGL\\"]&&Ne&&(window[\\"forceWebGL\\"]||(pe||xe||Ce||S||he||de)&&x!==\\"other\\"),Ge=window[\\"forceWebGLBaseRender\\"]?\\"w\\":ze?\\"w\\":\\"d\\",je=a(\\"webkit\\"),E=\\"WebKitCSSMatrix\\"in c&&\\"m11\\"in new window[\\"WebKitCSSMatrix\\"],Ve=\\"MozPerspective\\"in d.style,We=\\"vV\\"in d.style,qe=Fe||E||Ve||We,Ye=false,Ze=e[12]!==undefined?e[12]:null;var R=true;try{if(typeof c.localStorage===\\"undefined\\"){R=false}else{var Ke=(new Date).getTime()+\\"\\";c.localStorage.setItem(\\"_test\\",Ke);if(c.localStorage.getItem(\\"_test\\")!==Ke){R=false}c.localStorage.removeItem(\\"_test\\")}}catch(e){R=false}var Xe=function(e,r){var t={};extend(t,L);extend(t,r);return e.getContext($,t)};var Je=parseInt(i.split(\\"chrome/\\")[1]);v={qV:o,KV:s,size:s?100:p?200:500,WV:n,ZV:m,JV:u,uT:re,HV:p,QV:te,cT:ve,eq:x,rq:ge,nq:_e,safari:l,iq:he,ie:g,aq:ne,oq:oe,sq:M,uq:fe,xv:C,fT:ue,cq:se,fq:S,hT:g&&!se,lT:K,RL:R,vT:Ze,geolocation:T||g&&!C||S,SL:w,uc:w&&!k,chrome:k,gT:true,hq:be,mee:f,$e:T,lq:T&&je,dq:T&&E,vq:T&&c.opera,Ue:y,bT:A,Mr:$e,YV:Ae,gq:we,pq:ke,yT:Te,pT:k&&Je>=57,mT:!T&&k&&Je>=64,g:je,bq:Fe,yq:E,mq:Ve,Tq:We,Mq:qe,Aq:Pe,xq:Le,Eb:Oe,TT:Ye,Tm:ze,AT:$,xT:L,ST:F,wT:P,MT:Re,movingDraw:De,baseRender:He?Ge:\\"d\\",scale:y?2:1,getContext:Xe,mH:false,AJ:t,amapRunTime:r,sY:Ue};testWepP(function(e){v.mH=e})}return v}var Browser=getSupport(typeof config===\\"undefined\\"?[]:config);if(typeof createImageBitmap!==\\"undefined\\"&&typeof ImageBitmap!==\\"undefined\\"){Browser.imageBitmap=true}var canceledWorkerFetch=Boolean(Browser.DW?!Browser.safari&&!Browser.AQ&&!Browser.gQ&&self.fetch&&self.Request&&self.AbortController&&self.Request.prototype.hasOwnProperty(\\"signal\\"):!Browser.safari&&!Browser.AQ&&!Browser.gQ&&window.fetch&&window.Request&&window.AbortController&&window.Request.prototype.hasOwnProperty(\\"signal\\"));Browser.LZ=canceledWorkerFetch;Browser[\\"amapRunTime\\"]={workerTime:{}};var projections={};var Projection=function(){function e(e,r,t,i){this.project=r;this.unproject=t;this.getResolution=i;projections[e]=this}e.prototype.Sq=function(e,r,t){var i=this.getResolution(t);var a=r[0]*i;var n=r[1]*i;var o=this.project(e[0],e[1]);return this.unproject(o[0]+a,o[1]+n)};e.prototype.wq=function(e,r){var t=this.project(e[0],e[1]);var i=[t[0]+r[0],t[1]+r[1]];return this.unproject(i[0],i[1])};return e}();var ProjectionManager={getProjection:function(e){return projections[e]}};var LngLat=function(){var e=function(e,r){return[e,r]};var r=function(e,r){return[e,r]};var t=function(e){return 180/256/Math.pow(2,e)};return new Projection(\\"EPSG:4326\\",e,r,t)}();var SphericalMercator=function(){var n=Math.PI/180;var a=180/Math.PI;var o=6378137;var f=85.0511287798;var e=function(e,r){var t=f;r=Math.max(Math.min(t,r),-t);var i=e*n;var a=r*n;a=Math.log(Math.tan(Math.PI/4+a/2));return[i*o,a*o]};var r=function(e,r){var t=e/o*a;var i=(2*Math.atan(Math.exp(r/o))-Math.PI/2)*a;return[t,i]};var t=function(e){return 20037508.342789244*2/256/Math.pow(2,e)};return new Projection(\\"EPSG:3857\\",e,r,t)}();var LCS=function(){function e(){this.hg=[-20037508.342789244,-20037508.342789244,20037508.342789244,20037508.342789244];this.cg=128;this.vg=128;this.lg=(this.hg[2]-this.hg[0])/this.cg;this.dg=(this.hg[3]-this.hg[1])/this.vg}e.prototype.setMap=function(e){this.map=e};e.prototype.getSize=function(){return[this.lg,this.dg]};e.prototype.getNum=function(){return[this.cg,this.vg]};e.prototype.getLocalByLnglat=function(e){var r;var t=(r=ProjectionManager.getProjection(\\"EPSG:3857\\")).project.apply(r,e);return this.getLocalByCoord(t)};e.prototype.getLocalByCoord=function(e){var r=Math.floor(e[0]/this.lg);var t=Math.floor(e[1]/this.dg);var i=this.getLocalCenterByXY(r,t);var a=[e[0]-i.center[0],e[1]-i.center[1]];return{Sa:a,x:r,y:t,center:i.center,Ro:i.Ro}};e.prototype.getLocalCenterByXY=function(e,r){var t={x:e,y:r,center:[0,0],Ro:[0,0,0,0]};t.center=[(e+.5)*this.lg,(r+.5)*this.dg];t.Ro=[e*this.lg,r*this.dg,(e+1)*this.lg,(r+1)*this.dg];return t};e.prototype.getDeltaCoord=function(e){var r=this.getLocalByCoord(e);return[e[0]-r.center[0],e[1]-r.center[1]]};return e}();var lcs$2=new LCS;var E4326=ProjectionManager.getProjection(\\"EPSG:4326\\");var E3857=ProjectionManager.getProjection(\\"EPSG:3857\\");var LngLat$1={Ro:[-180,-90,180,90],project:function(e,r,t){var i=E4326.project(e,r);return this.transform(i[0],i[1],t)},unproject:function(e,r,t){var i=this.Xs(e,r,t);return E4326.unproject(i[0],i[1])},transform:function(e,r,t){var i;if(t===undefined){i=180}else{i=256<<t}var a=i;var n=i*2;var o=this.Ro[2]-this.Ro[0];var f=this.Ro[3]-this.Ro[1];e=(e-this.Ro[0])/o*n;r=a-(r-this.Ro[1])/f*a;return[e,r]},Xs:function(e,r,t){var i;if(t===undefined){i=180}else{i=256<<t}var a=i;var n=i*2;e=(e/n-.5)*360;r=-(r/a-.5)*180;return[e,r]},nt:function(e,r,t){return this.Xs(e,r,t)},wu:function(e,r,t){return this.Xs(e,r,t)},yo:function(e,r,t){var i=0;if(e/this.Ro[3]>0){i=Math.abs(Math.floor(e/this.Ro[3]))}else{i=Math.abs(Math.ceil(e/this.Ro[3]))}var a=0;if(r/this.Ro[3]>0){a=Math.abs(Math.floor(r/this.Ro[3]))}else{a=Math.abs(Math.ceil(r/this.Ro[3]))}var n=e%this.Ro[3];var o=r%this.Ro[3];var f=this.transform(n,o,t);e=this.wu(e,e,t)[0]*i+f[0];r=this.wu(r,r,t)[1]*a+f[1];var s=this.transform(0,0,t),u=s[0],l=s[1];return[e-u,r-l]},Bb:function(e,r,t){return t.X(e,r)},qb:function(e,r,t){return t.H(e,r)},Gd:function(e,r,t,i){var a=i.X(e[0],e[1]);var n=i.X(e[0]+r,e[1]+t);return[n[0]-a[0],n[1]-a[1]]}};var SphericalMercator$1={Ro:[-20037508.342789244,-20037508.342789244,20037508.342789244,20037508.342789244],project:function(e,r,t){var i=E3857.project(e,r);return this.transform(i[0],i[1],t)},unproject:function(e,r,t){var i=this.Xs(e,r,t);return E3857.unproject(i[0],i[1])},transform:function(e,r,t){e=Math.min(20037508.342789244,Math.max(e,-20037508.342789244));r=Math.min(20037508.342789244,Math.max(r,-20037508.342789244));var i;if(t===undefined){i=20037508.342789244*2}else{i=256*Math.pow(2,t)}var a=this.Ro[2]-this.Ro[0];var n=this.Ro[3]-this.Ro[1];e=(e-this.Ro[0])/a*i;r=i-(r-this.Ro[1])/n*i;return[e,r]},Xs:function(e,r,t){var i;if(t===undefined){i=20037508.342789244*2}else{i=256*Math.pow(2,t)}e=(e/i-.5)*this.Ro[2]*2;r=-(r/i-.5)*this.Ro[2]*2;return[e,r]},nt:function(e,r,t,i){e=this.Xs(e,r,t)[0]-this.Ro[0];r=this.Ro[2]-this.Xs(e,r,t)[1];return[e,r]},wu:function(e,r,t,i){var a=i.center,n=i.size;var o=(i.rotation||0)/180*Math.PI;var f=this.transform(e,r,t),s=f[0],u=f[1];var l=this.transform(a[0],a[1],t),v=l[0],c=l[1];var h=s-v;var d=u-c;var _=Math.sqrt(Math.pow(h,2)+Math.pow(d,2));var g=d===0?Math.PI/2:Math.atan(Math.abs(h/d));var y;if(h*d<=0){y=g+o}else{y=g-o}var m=h>0?y:-y;var p=d>0?1:-1;var b=n[0]/2+_*Math.sin(m);var x=n[1]/2+_*Math.cos(y)*p;return[b,x]},yo:function(e,r,t,i){var a=0;if(e/this.Ro[3]>0){a=Math.abs(Math.floor(e/this.Ro[3]))}else{a=Math.abs(Math.ceil(e/this.Ro[3]))}var n=0;if(r/this.Ro[3]>0){n=Math.abs(Math.floor(r/this.Ro[3]))}else{n=Math.abs(Math.ceil(r/this.Ro[3]))}var o=e%this.Ro[3];var f=r%this.Ro[3];var s=this.transform(o,f,t);var u=this.transform(0,0,t),l=u[0],v=u[1];e=l*a+s[0];r=v*n+s[1];return[e-l,r-v]},Bb:function(e,r,t){return t.X(e,r)},qb:function(e,r,t){return t.H(e,r)},Gd:function(e,r,t,i){var a=i.X(e[0],e[1]);var n=i.X(e[0]+r,e[1]+t);return[n[0]-a[0],n[1]-a[1]]}};var transform={\\"EPSG:4326\\":LngLat$1,\\"EPSG:3857\\":SphericalMercator$1};var labelsUtil$2={Bj:function(e){if(e===void 0){e={}}var r={};for(var t in e){if(e.hasOwnProperty(t)){r[t]=1}}return r},zj:function(e,r){e.gs=r;e.qj=r.options||{};e.Wj=r.Wj||{};e.Fs=r.Fs||{};e.Gj=r.Gj||{};e.Hj=r.Hj||{};e.Vj=r.Vj||{};e.$j=r.$j||0},Yj:function(e,r){if(e===void 0){e=[NaN,NaN,NaN,NaN]}if(r===void 0){r=[0,0,0,1]}for(var t=0;t<e.length;t++){var i=e[t];if(isNaN(i)){e[t]=r[t]}}return e},Kj:function(e){var r=255;var t=65280;var i=16711680;var a=e&r;var n=(e&t)>>8;var o=(e&i)>>16;var f=255;return[o/f,n/f,a/f,1]},Xj:function(e,r){if(r===void 0){r={}}var t=[];var i=r.qw,a=r.Aw,n=r.complete;for(var o=0,f=e;o<f.length;o++){var s=f[o];var u=new Promise(s);t.push(u)}var l=0;Promise.all(t).then(function(){if(i){i.apply(void 0,arguments)}if(n&&!l){l=1;n.apply(void 0,arguments)}}).catch(function(){if(a){a.apply(void 0,arguments)}if(n&&!l){l=1;n.apply(void 0,arguments)}})},Jj:function(e,r){var t=e[0],i=t===void 0?0:t,a=e[1],n=a===void 0?0:a;var o=r[0],f=o===void 0?0:o,s=r[1],u=s===void 0?0:s;var l;if(i<=f){if(n>=f){if(n>u){l=[f,u]}else{l=[f,n]}}else{l=null}}else{l=labelsUtil$2.Jj(r,e)}return l},measureText:function(e,r,t,i){if(r===void 0){r=\\"\\"}if(i===void 0){i=\\"3D\\"}if(i===\\"3D\\"){return e.measureText(r,t)}},lnglatToContainer:function(e,r){var t=r.zoom,i=t===void 0?20:t;if(i<LocalZoom){return e}var a=lcs$2.getLocalByCoord(e);var n=vector$3.Ip(e,a.center);return n},Sd:function(e,r){var t=e[0],i=t===void 0?0:t,a=e[1],n=a===void 0?0:a;var o=r[0],f=o===void 0?0:o,s=r[1],u=s===void 0?0:s;var l=Math.abs(f-i);var v=Math.abs(u-n);var c=Math.sqrt(Math.pow(l,2)+Math.pow(v,2));return c},getAngle:function(e,r){var t=e[0],i=t===void 0?0:t,a=e[1],n=a===void 0?0:a;var o=r[0],f=o===void 0?0:o,s=r[1],u=s===void 0?0:s;var l=f-i;var v=u-n;var c;if(l!==0){c=Math.atan(v/l)}else if(v<0){return Math.PI*3/2}else{return Math.PI/2}var h;if(c===0){if(l>=0){h=c}else{h=c+Math.PI}}else if(c>0){if(l>=0){h=c}else{h=c+Math.PI}}else{if(l>0){h=2*Math.PI+c}else{h=Math.PI+c}}return h},Fd:function(e,r,t){var i=e[0],a=i===void 0?0:i,n=e[1],o=n===void 0?0:n;var f=r[0],s=f===void 0?0:f,u=r[1],l=u===void 0?0:u;var v=s-a;var c=l-o;var h=[];var d=0;while(d<t){var _=a+v/(t+1)*(d+1);var g=o+c/(t+1)*(d+1);var y=[_,g];h.push(y);d++}return h},OG:function(e,r,t){if(t!==0){var i=e[0]+(r[0]-e[0])*t;var a=e[1]+(r[1]-e[1])*t;return[i,a]}return e},Ed:function(e,r){if(e===void 0){e=[]}if(r===void 0){r=\\"ch\\"}var t=e.length;if(!t){return false}var i=e[0];var a=t>=4?Math.floor(t/4*3):t-1;var n=e[a];var o=i[0],f=i[1];var s=n[0],u=n[1];var l=u-f;var v=s-o;var c=l/v;var h=[s-o,u-f];var d;if(r===\\"ch\\"){if(Math.abs(c)>1){d=vector$3.Zj(h,[0,1])}else{d=vector$3.Zj(h,[1,0])}}else{d=vector$3.Zj(h,[1,0])}return d<0},Nd:function(e,r,t){var i=e[0],a=e[1];var n=r[0],o=r[1];var f=o-a;var s=n-i;var u=f/s;var l=[n-i,o-a];var v;var c;if(Math.abs(u)>1&&t!==\\"x\\"){v=vector$3.Zj(l,[0,-1]);if(v>0){c=vector$3.Qj(l,[0,-1])}else{c=vector$3.Qj(l,[0,1])}if(u>0){c=-c}}else{v=vector$3.Zj(l,[1,0]);if(v>0){c=vector$3.Qj(l,[1,0])}else{c=vector$3.Qj(l,[-1,0])}if(u<0){c=-c}}return c},Od:function(e,r,t){var i;var a;i=t*Math.sin(r);a=t*Math.cos(r);var n=e[0],o=e[1];var f=n+a;var s=o+i;return[f,s]},jd:function(e,r,t,i){var a=vector$3.Ip(e,r);var n=vector$3.length(a);var o=vector$3.Ip(t,r);var f=vector$3.length(o);var s=vector$3.Zj(a,o);var u=Math.acos(s/(n*f));var l=Math.PI-u;var v=n*Math.sin(l);var c=n*Math.cos(l);var h=Math.sqrt(Math.pow(i,2)-Math.pow(v,2));var d=h-c;var _=o[0]===0?o[1]>0?Math.PI/2:-Math.PI/2:Math.atan(o[1]/o[0]);var g=Math.abs(d*Math.sin(_));var y=d*Math.cos(_);var m=vector$3.Zj(o,[1,0]);var p=vector$3.Zj(o,[0,1]);var b=[m>=0?y:-y,p>=0?g:-g];var x=vector$3.add(r,b);return x},rank:function(e){var r=[];for(var t=0;t<e.length;t++){var i=parseFloat(e[t]);if(i<0){e.splice(t--,1);r.push(i)}else{e[t]=i}}e.sort(function(e,r){return e-r});e=r.concat(e);return e},$p:function(e){var r=CONSTS.Mp,t=CONSTS.Rp;if(e[1]>=zoomRange[1]){e[1]=t}if(e[0]<=zoomRange[0]){e[0]=r}return e},toString:function(e,r){if(r===void 0){r=4}var t=\\"\\";if(!e){return t}for(var i=0,a=e;i<a.length;i++){var n=a[i];if((n+\\"\\").length<r){t+=n}else{t+=n.toFixed(r)}}return t},xf:function(e,r){var t=[];var i=r.ja,a=r.Fa,n=r.Oa,o=r.Ea;for(var f in e){if(e.hasOwnProperty(f)){if(f===CONSTS.gH||f===CONSTS.FN||f===CONSTS.RB){continue}if(f===\\"shields\\"){t.push(e[f]);continue}if(i){var s=f.split(\\"-\\");var u=parseInt(s[1],10);var l=parseInt(s[2],10);if(u>=i&&u<=n&&l>=a&&l<=o){t.push(e[f])}}else{t.push(e[f])}}}if(!t.length){t=e}return t},EQ:function(e,r){var t=[];var i=r.length;for(var a=0;a<i-1;a++){var n=e.substring(r[a],r[a+1]);t.push(n)}if(!i){t=e.split(\\"\\")}return t},aQ:function(e){var r=[];for(var t=0;t<e.length;t++){var i=e[t];var a=[];for(var n=0;n<i.length;n++){var o=i.charCodeAt(n);a.push(o)}var f=a.join(\\"|\\");r.push(f)}return r},tQ:function(e,r,t){var i=\\"\\";var a=[];var n=\\"\\";if(e.name){if(e.JQ&&e.JQ.length>0){i=getSpiltLineWithSpiltIndex(e.name,e.JQ);n=\\"ch\\"}else if(t){var o=t.lineBreak(e.name,{from:\\"labelsLayer\\",CO:[]});var f=0;var s=\\"\\";if(o.oQ.length>=2){for(var u=1,l=o.oQ.length-1;u<l;u++){s+=e.name.slice(f,o.oQ[u])+\\" \\";f=o.oQ[u]}s+=e.name.slice(f)}else{s=e.name}i=s;n=\\"ch\\"}else{i=e.name;n=\\"ch\\"}}else{switch(r){case\\"en\\":{i=e.name_en;a=e.iQ;n=\\"en\\";break}case\\"local\\":{i=e.QQ;a=e.$G;n=e.CQ;break}case\\"zh_cn\\":{i=e.BQ;n=\\"ch\\";break}default:{i=e.BQ;n=\\"ch\\"}}if(!i){if(e.name_en){i=e.name_en;a=e.iQ;n=\\"en\\"}else if(e.QQ){i=e.QQ;a=e.$G;n=e.QQ}}}return{name:i,$G:a,type:n}}};var vector$3={add:function(e,r){var t=[];for(var i=0;i<e.length;i++){t[i]=e[i]+r[i]}return t},Ip:function(e,r){var t=[];for(var i=0;i<e.length;i++){t.push(e[i]-r[i])}return t},multiply:function(e,r){var t=[];for(var i=0,a=e;i<a.length;i++){var n=a[i];t.push(n*r)}return t},Up:function(e,r){var t=[];for(var i=0;i<e.length;i++){t[i]=e[i]/r}return t},tA:function(e){return this.multiply(e,-1)},Zj:function(e,r){var t=e[0],i=t===void 0?0:t,a=e[1],n=a===void 0?0:a;var o=r[0],f=o===void 0?0:o,s=r[1],u=s===void 0?0:s;return i*f+n*u},Qj:function(e,r){var t=vector$3.Zj(e,r);var i=vector$3.length(e);var a=vector$3.length(r);var n=Math.acos(t/(i*a));return n},length:function(e){var r=e[0],t=e[1];return Math.sqrt(Math.pow(r,2)+Math.pow(t,2))}};function getSpiltLineWithSpiltIndex(e,r){r.shift();if(r.length===0){return e}var t=\\"\\";var i=0;for(var a=0,n=r.length;a<n;a++){t+=e.substr(i,r[a]-i)+\\" \\";i=r[a]}t+=e.substr(r[r.length-1]);return t}var scale$1=Browser.scale;var LabelsRenderUtil$3={getBounds:function(e,r){if(r===void 0){r={}}var t=r.zoom,i=r.centerCoord,a=r.view;var n=15;var o=[10*n*scale$1,10*n*scale$1,10*n*scale$1,10*n*scale$1];var f=e.boundsCoord;var s=f[0],u=f[1],l=f[2],v=f[3];var c=this.nt(0,0,t,r);var h=vector$3.Ip(this.nt(o[0],o[1],t,r),c);var d=vector$3.Ip(this.nt(o[2],o[3],t,r),c);var _=t>=LocalZoom?i:[0,0],g=_[0],y=_[1];var m=[s-g-Math.abs(d[1]),u-y-Math.abs(d[0])];var p=[l-g+Math.abs(h[1]),v-y+Math.abs(h[0])];return[m,p]},gz:function(e,r){var t=r[0],i=r[1];var a=e[0],n=e[1];var o=a-t[0];var f=n-t[1];var s=i[0]-a;var u=i[1]-n;return o>=0&&f>=0&&s>=0&&u>=0},wz:function(e,r){if(r===void 0){r={}}var t=r.forceShow,i=t===void 0?0:t,a=r._z,n=a===void 0?0:a;var o=e[\\"data\\"]||{};var f=o[\\"rank\\"]||1;var s=n/100;var u=2e5;f=i?f-1e5:s*u+f;return f},wu:function(e,r,t,i){if(e===void 0){e=0}if(r===void 0){r=0}if(i){var a=i.viewState,n=i.size,o=i.transform,f=i.view,s=i.viewMode,u=i.centerCoord,l=i.positionType,v=l===void 0?\\"relative\\":l;if(s===\\"2D\\"){var c={center:a.centerCoord,rotation:a.rotation,size:n};var h=a.optimalZoom>=LocalZoom?u:[0,0],d=h[0],_=h[1];return o.wu(e+d,r+_,t,c)}else{return v===\\"relative\\"?f.H(e,r):f._u(e,r)}}},r0:function(e,r,t,i,a){if(e===void 0){e=0}if(r===void 0){r=0}if(t===void 0){t=0}if(a){var n=a.viewState,o=a.size,f=a.transform,s=a.view,u=a.viewMode,l=a.centerCoord,v=a.positionType,c=v===void 0?\\"relative\\":v;if(u===\\"2D\\"){var h={center:n.centerCoord,rotation:n.rotation,size:o};var d=n.optimalZoom>=LocalZoom?l:[0,0],_=d[0],g=d[1];return f.wu(e+_,r+g,i,h)}else{return c===\\"relative\\"?s.H(e,r,t):s._u(e,r,t)}}},kz:function(e,r,t,i){if(e===void 0){e=[]}if(i===void 0){i={}}var a=i.centerCoord;if(r<LocalZoom&&t>=LocalZoom){var n=a[0],o=a[1];var f=[];for(var s=0,u=e;s<u.length;s++){var l=u[s];f.push([l[0]-n,l[1]-o])}return f}return e},nt:function(e,r,t,i){if(e===void 0){e=0}if(r===void 0){r=0}var a=i.view,n=i.transform,o=i.viewMode;if(o===\\"2D\\"){return n.nt(e,r,t)}else{return a.X(e,r)}},MG:function(e,r){if(e<LocalZoom-1){r=[0,0]}return r}};function isLngLat(e){return e&&e.className===\\"AMap.LngLat\\"}function isNumber(e){var r=+e;return typeof+r===\\"number\\"&&!isNaN(r)}function isNumberArray(e){return Array.isArray(e)&&isNumber(e[0])}function parseLngLatData(e){if(Array.isArray(e)){if(Array.isArray(e[0])){for(var r=0;r<e.length;r+=1){e[r]=parseLngLatData(e[r])}}else{var t=typeof e[0];if(t===\\"string\\"||t===\\"number\\"){return new LngLat$2(e[0],e[1])}else{return e}}}return e}var Coordinate={lr:function(e,r){var t=Infinity;for(var i=0,a=1,n=r.length;a<n;i=a,a+=1){t=Math.min(t,this.ur(e,[r[i],r[a]]))}return Math.sqrt(t)},ur:function(e,r){return this.cr(e,this.closestOnSegment(e,r))},cr:function(e,r){var t=e[0]-r[0];var i=e[1]-r[1];return t*t+i*i},pr:function(e,r,t,i){i=i||1e-6;if(t[0]===r[0]){var a=Math.min(r[1],t[1]);var n=Math.max(r[1],t[1]);return Math.abs(e[0]-t[0])<i&&e[1]>=a&&e[1]<=n}var o=Math.min(r[0],t[0]);var f=Math.max(r[0],t[0]);var s=(t[1]-r[1])/(t[0]-r[0])*(e[0]-r[0])+r[1];return Math.abs(s-e[1])<i&&e[0]>=o&&e[0]<=f},closestOnSegment:function(e,r){var t=e[0];var i=e[1];var a=r[0];var n=r[1];var o=a[0];var f=a[1];var s=n[0];var u=n[1];var l=s-o;var v=u-f;var c=l===0&&v===0?0:(l*(t-o)+v*(i-f))/(l*l+v*v||0);var h;var d;if(c<=0){h=o;d=f}else if(c>=1){h=s;d=u}else{h=o+c*l;d=f+c*v}return[h,d]},isClockwise:function(e){var r=e.length;var t=0;var i=e[r-1];var a=i[0];var n=i[1];var o;var f;var s;for(var u=0;u<r;u+=1){s=e[u];o=s[0];f=s[1];t+=(o-a)*(f+n);a=o;n=f}return t>0},ss:function(e,r,t){var i=e[0];var a=e[1];var n=false;var o;var f;var s;var u;var l=r.length;for(var v=0,c=l-1;v<l;c=v,v+=1){var h=false;o=r[v][0];f=r[v][1];s=r[c][0];u=r[c][1];if(o===i&&f===a||s===i&&u===a){return t?true:false}if(f<a===u>=a){var d=(s-o)*(a-f)/(u-f)+o;if(i===d){return t?true:false}else{h=i<d}}if(h){n=!n}}return n},dr:function(e,r){var t=function(e,r,t){return(t[0]-r[0])*(e[1]-r[1])>(t[1]-r[1])*(e[0]-r[0])};var i=function(e,r,t,i){var a=[e[0]-r[0],e[1]-r[1]],n=[t[0]-i[0],t[1]-i[1]],o=e[0]*r[1]-e[1]*r[0],f=t[0]*i[1]-t[1]*i[0],s=1/(a[0]*n[1]-a[1]*n[0]);return[(o*n[0]-f*a[0])*s,(o*n[1]-f*a[1])*s]};var a,n,o,f;var s=e;a=r[r.length-2];for(var u=0,l=r.length-1;u<l;u++){n=r[u];var v=s;s=[];o=v[v.length-1];for(var c=0,h=v.length;c<h;c++){f=v[c];if(t(f,a,n)){if(!t(o,a,n)){s.push(i(a,n,o,f))}s.push(f)}else if(t(o,a,n)){s.push(i(a,n,o,f))}o=f}a=n}if(s.length<3){return[]}s.push(s[0]);return s}};var Pixel=function(){function t(e,r,t){if(t===void 0){t=false}this.className=\\"AMap.Pixel\\";if(isNaN(e)||isNaN(r)){if(!window._AMapConfig){throw Error(\\"Invalid Object: Pixel(\\"+e+\\", \\"+r+\\")\\")}}this[\\"x\\"]=t?Math.round(e):Number(e);this[\\"y\\"]=t?Math.round(r):Number(r)}t.prototype[\\"getX\\"]=function(){return this.x};t.prototype[\\"round\\"]=function(){return new t(Math.round(this.x),Math.round(this.y))};t.prototype[\\"getY\\"]=function(){return this.y};t.prototype[\\"toString\\"]=function(){return this.x+\\",\\"+this.y};t.prototype[\\"equals\\"]=function(e){if(!(e instanceof t)){return false}var r=Math.max(Math.abs(this.x-e.x),Math.abs(this.y-e.y));return r<=1e-9};t.prototype[\\"toArray\\"]=function(){return[this.x,this.y]};t.prototype[\\"subtract\\"]=function(e,r){return new t(this.x-e.x,this.y-e.y,r)};t.prototype[\\"multiplyBy\\"]=function(e,r){return new t(this.x*e,this.y*e,r)};t.prototype[\\"direction\\"]=function(){var e=this.x;var r=this.y;if(e===0&&r===0){return null}if(e===0){return r>0?90:270}var t=Math.atan(r/e)*180/Math.PI;if(e<0&&r>0){return t+180}else if(e<0&&r<0){return t+180}else if(e>0&&r<0){return t+360}else{return t}};t.prototype.toJSON=function(){return[this.x,this.y]};return t}();var commonjsGlobal=typeof globalThis!==\\"undefined\\"?globalThis:typeof window!==\\"undefined\\"?window:typeof global!==\\"undefined\\"?global:typeof self!==\\"undefined\\"?self:{};function unwrapExports(e){return e&&e.gP&&Object.prototype.hasOwnProperty.call(e,\\"default\\")?e[\\"default\\"]:e}function createCommonjsModule(e,r){return r={exports:{}},e(r,r.exports),r.exports}function getCjsExportFromNamespace(e){return e&&e[\\"default\\"]||e}var dist=createCommonjsModule(function(e,t){(function(e,r){r(t)})(commonjsGlobal,function(e){function $(e,r){return e>r?1:e<r?-1:0}var g=function e(r,t){if(r===void 0)r=$;if(t===void 0)t=false;this.bP=r;this.yP=null;this._size=0;this.mP=!!t};var r={size:{configurable:true}};g.prototype.TP=function e(r){var t=r.right;if(t){r.right=t.left;if(t.left){t.left.parent=r}t.parent=r.parent}if(!r.parent){this.yP=t}else if(r===r.parent.left){r.parent.left=t}else{r.parent.right=t}if(t){t.left=r}r.parent=t};g.prototype.wP=function e(r){var t=r.left;if(t){r.left=t.right;if(t.right){t.right.parent=r}t.parent=r.parent}if(!r.parent){this.yP=t}else if(r===r.parent.left){r.parent.left=t}else{r.parent.right=t}if(t){t.right=r}r.parent=t};g.prototype.AP=function e(r){while(r.parent){var t=r.parent;if(!t.parent){if(t.left===r){this.wP(t)}else{this.TP(t)}}else if(t.left===r&&t.parent.left===t){this.wP(t.parent);this.wP(t)}else if(t.right===r&&t.parent.right===t){this.TP(t.parent);this.TP(t)}else if(t.left===r&&t.parent.right===t){this.wP(t);this.TP(t)}else{this.TP(t);this.wP(t)}}};g.prototype.xP=function e(r){var t,i,a,n,o;while(r.parent){t=r.parent;i=t.parent;if(i&&i.parent){a=i.parent;if(a.left===i){a.left=r}else{a.right=r}r.parent=a}else{r.parent=null;this.yP=r}n=r.left;o=r.right;if(r===t.left){if(i){if(i.left===t){if(t.right){i.left=t.right;i.left.parent=i}else{i.left=null}t.right=i;i.parent=t}else{if(n){i.right=n;n.parent=i}else{i.right=null}r.left=i;i.parent=r}}if(o){t.left=o;o.parent=t}else{t.left=null}r.right=t;t.parent=r}else{if(i){if(i.right===t){if(t.left){i.right=t.left;i.right.parent=i}else{i.right=null}t.left=i;i.parent=t}else{if(o){i.left=o;o.parent=i}else{i.left=null}r.right=i;i.parent=r}}if(n){t.right=n;n.parent=t}else{t.right=null}r.left=t;t.parent=r}}};g.prototype.replace=function e(r,t){if(!r.parent){this.yP=t}else if(r===r.parent.left){r.parent.left=t}else{r.parent.right=t}if(t){t.parent=r.parent}};g.prototype.MP=function e(r){if(r===void 0)r=this.yP;if(r){while(r.left){r=r.left}}return r};g.prototype.SP=function e(r){if(r===void 0)r=this.yP;if(r){while(r.right){r=r.right}}return r};g.prototype.Xc=function e(r,t){var i=this.yP;var a=null;var n=this.bP;var o;if(this.mP){while(i){a=i;o=n(i.key,r);if(o===0){return}else if(n(i.key,r)<0){i=i.right}else{i=i.left}}}else{while(i){a=i;if(n(i.key,r)<0){i=i.right}else{i=i.left}}}i={key:r,data:t,left:null,right:null,parent:a};if(!a){this.yP=i}else if(n(a.key,i.key)<0){a.right=i}else{a.left=i}this.xP(i);this._size++;return i};g.prototype.find=function e(r){var t=this.yP;var i=this.bP;while(t){var a=i(t.key,r);if(a<0){t=t.right}else if(a>0){t=t.left}else{return t}}return null};g.prototype.contains=function e(r){var t=this.yP;var i=this.bP;while(t){var a=i(r,t.key);if(a===0){return true}else if(a<0){t=t.left}else{t=t.right}}return false};g.prototype.remove=function e(r){var t=this.find(r);if(!t){return false}this.xP(t);if(!t.left){this.replace(t,t.right)}else if(!t.right){this.replace(t,t.left)}else{var i=this.MP(t.right);if(i.parent!==t){this.replace(i,i.right);i.right=t.right;i.right.parent=i}this.replace(t,i);i.left=t.left;i.left.parent=i}this._size--;return true};g.prototype.removeNode=function e(r){if(!r){return false}this.xP(r);if(!r.left){this.replace(r,r.right)}else if(!r.right){this.replace(r,r.left)}else{var t=this.MP(r.right);if(t.parent!==r){this.replace(t,t.right);t.right=r.right;t.right.parent=t}this.replace(r,t);t.left=r.left;t.left.parent=t}this._size--;return true};g.prototype.$P=function e(r){var t=this.find(r);if(!t){return}this.xP(t);var i=t.left;var a=t.right;var n=null;if(i){i.parent=null;n=this.SP(i);this.xP(n);this.yP=n}if(a){if(i){n.right=a}else{this.yP=a}a.parent=n}this._size--};g.prototype.pop=function e(){var r=this.yP,t=null;if(r){while(r.left){r=r.left}t={key:r.key,data:r.data};this.remove(r.key)}return t};g.prototype.next=function e(r){var t=r;if(t){if(t.right){t=t.right;while(t&&t.left){t=t.left}}else{t=r.parent;while(t&&t.right===r){r=t;t=t.parent}}}return t};g.prototype.NM=function e(r){var t=r;if(t){if(t.left){t=t.left;while(t&&t.right){t=t.right}}else{t=r.parent;while(t&&t.left===r){r=t;t=t.parent}}}return t};g.prototype.forEach=function e(r){var t=this.yP;var i=[],a=false,n=0;while(!a){if(t){i.push(t);t=t.left}else{if(i.length>0){t=i.pop();r(t,n++);t=t.right}else{a=true}}}return this};g.prototype.range=function e(r,t,i,a){var n=[];var o=this.bP;var f=this.yP,s;while(n.length!==0||f){if(f){n.push(f);f=f.left}else{f=n.pop();s=o(f.key,t);if(s>0){break}else if(o(f.key,r)>=0){if(i.call(a,f)){return this}}f=f.right}}return this};g.prototype.keys=function e(){var r=this.yP;var t=[],i=[],a=false;while(!a){if(r){t.push(r);r=r.left}else{if(t.length>0){r=t.pop();i.push(r.key);r=r.right}else{a=true}}}return i};g.prototype.values=function e(){var r=this.yP;var t=[],i=[],a=false;while(!a){if(r){t.push(r);r=r.left}else{if(t.length>0){r=t.pop();i.push(r.data);r=r.right}else{a=true}}}return i};g.prototype.at=function e(r){var t=this.yP;var i=[],a=false,n=0;while(!a){if(t){i.push(t);t=t.left}else{if(i.length>0){t=i.pop();if(n===r){return t}n++;t=t.right}else{a=true}}}return null};g.prototype.load=function e(r,t,i){if(r===void 0)r=[];if(t===void 0)t=[];if(i===void 0)i=false;if(this._size!==0){throw new Error(\\"bulk-load: tree is not empty\\")}var a=r.length;if(i){u(r,t,0,a-1,this.bP)}this.yP=l(null,r,t,0,a);this._size=a;return this};g.prototype.min=function e(){var r=this.MP(this.yP);if(r){return r.key}else{return null}};g.prototype.max=function e(){var r=this.SP(this.yP);if(r){return r.key}else{return null}};g.prototype.isEmpty=function e(){return this.yP===null};r.size.get=function(){return this._size};g.LP=function e(r,t,i,a,n){return new g(i,n).load(r,t,a)};Object.defineProperties(g.prototype,r);function l(e,r,t,i,a){var n=a-i;if(n>0){var o=i+Math.floor(n/2);var f=r[o];var s=t[o];var u={key:f,data:s,parent:e};u.left=l(u,r,t,i,o);u.right=l(u,r,t,o+1,a);return u}return null}function u(e,r,t,i,a){if(t>=i){return}var n=e[t+i>>1];var o=t-1;var f=i+1;while(true){do{o++}while(a(e[o],n)<0);do{f--}while(a(e[f],n)>0);if(o>=f){break}var s=e[o];e[o]=e[f];e[f]=s;s=r[o];r[o]=r[f];r[f]=s}u(e,r,t,f,a);u(e,r,f+1,i,a)}var o=0;var s=1;var v=2;var c=3;var y=0;var f=1;var m=2;var h=3;function p(e,r,t){if(r===null){e.PP=false;e.OP=true}else{if(e._P===r._P){e.PP=!r.PP;e.OP=r.OP}else{e.PP=!r.OP;e.OP=r.NP()?!r.PP:r.PP}if(r){e.CP=!a(r,t)||r.NP()?r.CP:r}}var i=a(e,t);if(i){e.hN=F(e,t)}else{e.hN=0}}function a(e,r){switch(e.type){case o:switch(r){case y:return!e.OP;case f:return e.OP;case m:return e._P&&e.OP||!e._P&&!e.OP;case h:return true}break;case v:return r===y||r===f;case c:return r===m;case s:return false}return false}function F(e,r){var t=!e.PP;var i=!e.OP;var a;switch(r){case y:a=t&&i;break;case f:a=t||i;break;case h:a=t^i;break;case m:if(e._P){a=t&&!i}else{a=i&&!t}break}return a?+1:-1}var d=function e(r,t,i,a,n){this.left=t;this.point=r;this.IP=i;this._P=a;this.type=n||o;this.PP=false;this.OP=false;this.CP=null;this.hN=0;this.lN=-1;this.dN=-1;this.DP=true};var t={EP:{configurable:true}};d.prototype.FP=function e(r){var t=this.point,i=this.IP.point;return this.left?(t[0]-r[0])*(i[1]-r[1])-(i[0]-r[0])*(t[1]-r[1])>0:(i[0]-r[0])*(t[1]-r[1])-(t[0]-r[0])*(i[1]-r[1])>0};d.prototype.RP=function e(r){return!this.FP(r)};d.prototype.NP=function e(){return this.point[0]===this.IP.point[0]};t.EP.get=function(){return this.hN!==0};d.prototype.clone=function e(){var r=new d(this.point,this.left,this.IP,this._P,this.type);r.UP=this.UP;r.hN=this.hN;r.CP=this.CP;r.DP=this.DP;r.PP=this.PP;r.OP=this.OP;return r};Object.defineProperties(d.prototype,t);function _(e,r){if(e[0]===r[0]){if(e[1]===r[1]){return true}else{return false}}return false}var i=11102230246251565e-32;var E=134217729;var N=(3+8*i)*i;function R(e,r,t,i,a){var n,o,f,s;var u=r[0];var l=i[0];var v=0;var c=0;if(l>u===l>-u){n=u;u=r[++v]}else{n=l;l=i[++c]}var h=0;if(v<e&&c<t){if(l>u===l>-u){o=u+n;f=n-(o-u);u=r[++v]}else{o=l+n;f=n-(o-l);l=i[++c]}n=o;if(f!==0){a[h++]=f}while(v<e&&c<t){if(l>u===l>-u){o=n+u;s=o-n;f=n-(o-s)+(u-s);u=r[++v]}else{o=n+l;s=o-n;f=n-(o-s)+(l-s);l=i[++c]}n=o;if(f!==0){a[h++]=f}}}while(v<e){o=n+u;s=o-n;f=n-(o-s)+(u-s);u=r[++v];n=o;if(f!==0){a[h++]=f}}while(c<t){o=n+l;s=o-n;f=n-(o-s)+(l-s);l=i[++c];n=o;if(f!==0){a[h++]=f}}if(n!==0||h===0){a[h++]=n}return h}function H(e,r){var t=r[0];for(var i=1;i<e;i++){t+=r[i]}return t}function n(e){return commonjsGlobal.Float64Array?new Float64Array(e):new Array(e)}var P=(3+16*i)*i;var z=(2+12*i)*i;var G=(9+64*i)*i*i;var O=n(4);var B=n(8);var D=n(12);var j=n(16);var U=n(4);function L(e,r,t,i,a,n,o){var f,s,u,l;var v,c,h,d,_,g,y,m,p,b,x,C,M,S;var w=e-a;var k=t-a;var T=r-n;var A=i-n;b=w*A;c=E*w;h=c-(c-w);d=w-h;c=E*A;_=c-(c-A);g=A-_;x=d*g-(b-h*_-d*_-h*g);C=T*k;c=E*T;h=c-(c-T);d=T-h;c=E*k;_=c-(c-k);g=k-_;M=d*g-(C-h*_-d*_-h*g);y=x-M;v=x-y;O[0]=x-(y+v)+(v-M);m=b+y;v=m-b;p=b-(m-v)+(y-v);y=p-C;v=p-y;O[1]=p-(y+v)+(v-C);S=m+y;v=S-m;O[2]=m-(S-v)+(y-v);O[3]=S;var I=H(4,O);var $=z*o;if(I>=$||-I>=$){return I}v=e-w;f=e-(w+v)+(v-a);v=t-k;u=t-(k+v)+(v-a);v=r-T;s=r-(T+v)+(v-n);v=i-A;l=i-(A+v)+(v-n);if(f===0&&s===0&&u===0&&l===0){return I}$=G*o+N*Math.abs(I);I+=w*l+A*f-(T*u+k*s);if(I>=$||-I>=$){return I}b=f*A;c=E*f;h=c-(c-f);d=f-h;c=E*A;_=c-(c-A);g=A-_;x=d*g-(b-h*_-d*_-h*g);C=s*k;c=E*s;h=c-(c-s);d=s-h;c=E*k;_=c-(c-k);g=k-_;M=d*g-(C-h*_-d*_-h*g);y=x-M;v=x-y;U[0]=x-(y+v)+(v-M);m=b+y;v=m-b;p=b-(m-v)+(y-v);y=p-C;v=p-y;U[1]=p-(y+v)+(v-C);S=m+y;v=S-m;U[2]=m-(S-v)+(y-v);U[3]=S;var F=R(4,O,4,U,B);b=w*l;c=E*w;h=c-(c-w);d=w-h;c=E*l;_=c-(c-l);g=l-_;x=d*g-(b-h*_-d*_-h*g);C=T*u;c=E*T;h=c-(c-T);d=T-h;c=E*u;_=c-(c-u);g=u-_;M=d*g-(C-h*_-d*_-h*g);y=x-M;v=x-y;U[0]=x-(y+v)+(v-M);m=b+y;v=m-b;p=b-(m-v)+(y-v);y=p-C;v=p-y;U[1]=p-(y+v)+(v-C);S=m+y;v=S-m;U[2]=m-(S-v)+(y-v);U[3]=S;var P=R(F,B,4,U,D);b=f*l;c=E*f;h=c-(c-f);d=f-h;c=E*l;_=c-(c-l);g=l-_;x=d*g-(b-h*_-d*_-h*g);C=s*u;c=E*s;h=c-(c-s);d=s-h;c=E*u;_=c-(c-u);g=u-_;M=d*g-(C-h*_-d*_-h*g);y=x-M;v=x-y;U[0]=x-(y+v)+(v-M);m=b+y;v=m-b;p=b-(m-v)+(y-v);y=p-C;v=p-y;U[1]=p-(y+v)+(v-C);S=m+y;v=S-m;U[2]=m-(S-v)+(y-v);U[3]=S;var L=R(P,D,4,U,j);return j[L-1]}function V(e,r,t,i,a,n){var o=(r-n)*(t-a);var f=(e-a)*(i-n);var s=o-f;if(o===0||f===0||o>0!==f>0){return s}var u=Math.abs(o+f);if(Math.abs(s)>=P*u){return s}return-L(e,r,t,i,a,n,u)}function b(e,r,t){var i=V(e[0],e[1],r[0],r[1],t[0],t[1]);if(i>0){return-1}if(i<0){return 1}return 0}function x(e,r){var t=e.point;var i=r.point;if(t[0]>i[0]){return 1}if(t[0]<i[0]){return-1}if(t[1]!==i[1]){return t[1]>i[1]?1:-1}return W(e,r,t)}function W(e,r,t,i){if(e.left!==r.left){return e.left?1:-1}if(b(t,e.IP.point,r.IP.point)!==0){return!e.FP(r.IP.point)?1:-1}return!e._P&&r._P?1:-1}function C(e,r,t){var i=new d(r,false,e,e._P);var a=new d(r,true,e.IP,e._P);if(_(e.point,e.IP.point)){console.warn(\\"what is that, a collapsed segment?\\",e)}i.UP=a.UP=e.UP;if(x(a,e.IP)>0){e.IP.left=true;a.left=false}e.IP.IP=a;e.IP=i;t.push(a);t.push(i);return t}function M(e,r){return e[0]*r[1]-e[1]*r[0]}function S(e,r){return e[0]*r[0]+e[1]*r[1]}function q(e,r,t,i,a){var n=[r[0]-e[0],r[1]-e[1]];var o=[i[0]-t[0],i[1]-t[1]];function f(e,r,t){return[e[0]+r*t[0],e[1]+r*t[1]]}var s=[t[0]-e[0],t[1]-e[1]];var u=M(n,o);var l=u*u;var v=S(n,n);if(l>0){var c=M(s,o)/u;if(c<0||c>1){return null}var h=M(s,n)/u;if(h<0||h>1){return null}if(c===0||c===1){return a?null:[f(e,c,n)]}if(h===0||h===1){return a?null:[f(t,h,o)]}return[f(e,c,n)]}u=M(s,n);l=u*u;if(l>0){return null}var d=S(n,s)/v;var _=d+S(n,o)/v;var g=Math.min(d,_);var y=Math.max(d,_);if(g<=1&&y>=0){if(g===1){return a?null:[f(e,g>0?g:0,n)]}if(y===0){return a?null:[f(e,y<1?y:1,n)]}if(a&&g===0&&y===1){return null}return[f(e,g>0?g:0,n),f(e,y<1?y:1,n)]}return null}function w(e,r,t){var i=q(e.point,e.IP.point,r.point,r.IP.point);var a=i?i.length:0;if(a===0){return 0}if(a===1&&(_(e.point,r.point)||_(e.IP.point,r.IP.point))){return 0}if(a===2&&e._P===r._P){return 0}if(a===1){if(!_(e.point,i[0])&&!_(e.IP.point,i[0])){C(e,i[0],t)}if(!_(r.point,i[0])&&!_(r.IP.point,i[0])){C(r,i[0],t)}return 1}var n=[];var o=false;var f=false;if(_(e.point,r.point)){o=true}else if(x(e,r)===1){n.push(r,e)}else{n.push(e,r)}if(_(e.IP.point,r.IP.point)){f=true}else if(x(e.IP,r.IP)===1){n.push(r.IP,e.IP)}else{n.push(e.IP,r.IP)}if(o&&f||o){r.type=s;e.type=r.PP===e.PP?v:c;if(o&&!f){C(n[1].IP,n[0].point,t)}return 2}if(f){C(n[0],n[1].point,t);return 3}if(n[0]!==n[3].IP){C(n[0],n[1].point,t);C(n[1],n[2].point,t);return 3}C(n[0],n[1].point,t);C(n[3].IP,n[2].point,t);return 3}function Y(e,r){if(e===r){return 0}if(b(e.point,e.IP.point,r.point)!==0||b(e.point,e.IP.point,r.IP.point)!==0){if(_(e.point,r.point)){return e.FP(r.IP.point)?-1:1}if(e.point[0]===r.point[0]){return e.point[1]<r.point[1]?-1:1}if(x(e,r)===1){return r.RP(e.point)?-1:1}return e.FP(r.point)?-1:1}if(e._P===r._P){var t=e.point,i=r.point;if(t[0]===i[0]&&t[1]===i[1]){t=e.IP.point;i=r.IP.point;if(t[0]===i[0]&&t[1]===i[1]){return 0}else{return e.UP>r.UP?1:-1}}}else{return e._P?-1:1}return x(e,r)===1?1:-1}function Z(e,r,t,i,a,n){var o=new g(Y);var f=[];var s=Math.min(i[2],a[2]);var u,l,v;while(e.length!==0){var c=e.pop();f.push(c);if(n===y&&c.point[0]>s||n===m&&c.point[0]>i[2]){break}if(c.left){l=u=o.Xc(c);v=o.MP();if(u!==v){u=o.NM(u)}else{u=null}l=o.next(l);var h=u?u.key:null;var d=void 0;p(c,h,n);if(l){if(w(c,l.key,e)===2){p(c,h,n);p(c,l.key,n)}}if(u){if(w(u.key,c,e)===2){var _=u;if(_!==v){_=o.NM(_)}else{_=null}d=_?_.key:null;p(h,d,n);p(c,h,n)}}}else{c=c.IP;l=u=o.find(c);if(u&&l){if(u!==v){u=o.NM(u)}else{u=null}l=o.next(l);o.remove(c);if(l&&u){w(u.key,l.key,e)}}}}return f}var K=function e(){this.points=[];this.vN=[];this.gN=null;this.depth=null};K.prototype.pN=function e(){return this.gN==null};function X(e){var r,t,i,a;var n=[];for(t=0,i=e.length;t<i;t++){r=e[t];if(r.left&&r.EP||!r.left&&r.IP.EP){n.push(r)}}var o=false;while(!o){o=true;for(t=0,i=n.length;t<i;t++){if(t+1<i&&x(n[t],n[t+1])===1){a=n[t];n[t]=n[t+1];n[t+1]=a;o=false}}}for(t=0,i=n.length;t<i;t++){r=n[t];r.lN=t}for(t=0,i=n.length;t<i;t++){r=n[t];if(!r.left){a=r.lN;r.lN=r.IP.lN;r.IP.lN=a}}return n}function J(e,r,t,i){var a=e+1,n=r[e].point,o;var f=r.length;if(a<f){o=r[a].point}while(a<f&&o[0]===n[0]&&o[1]===n[1]){if(!t[a]){return a}else{a++}o=r[a].point}a=e-1;while(t[a]&&a>i){a--}return a}function Q(e,r,t){var i=new K;if(e.CP!=null){var a=e.CP;var n=a.dN;var o=a.hN;if(o>0){var f=r[n];if(f.gN!=null){var s=f.gN;r[s].vN.push(t);i.gN=s;i.depth=r[n].depth}else{r[n].vN.push(t);i.gN=n;i.depth=r[n].depth+1}}else{i.gN=null;i.depth=r[n].depth}}else{i.gN=null;i.depth=0}return i}function ee(e){var o,r;var f=X(e);var s={};var u=[];var t=function(){if(s[o]){return}var r=u.length;var e=Q(f[o],u,r);var t=function(e){s[e]=true;f[e].dN=r};var i=o;var a=o;var n=f[o].point;e.points.push(n);while(true){t(i);i=f[i].lN;t(i);e.points.push(f[i].point);i=J(i,f,s,a);if(i==a){break}}u.push(e)};for(o=0,r=f.length;o<r;o++)t();return u}var re=k;var te=k;function k(e,r){if(!(this instanceof k)){return new k(e,r)}this.data=e||[];this.length=this.data.length;this.compare=r||ie;if(this.length>0){for(var t=(this.length>>1)-1;t>=0;t--){this.zP(t)}}}function ie(e,r){return e<r?-1:e>r?1:0}k.prototype={push:function(e){this.data.push(e);this.length++;this.El(this.length-1)},pop:function(){if(this.length===0){return undefined}var e=this.data[0];this.length--;if(this.length>0){this.data[0]=this.data[this.length];this.zP(0)}this.data.pop();return e},GP:function(){return this.data[0]},El:function(e){var r=this.data;var t=this.compare;var i=r[e];while(e>0){var a=e-1>>1;var n=r[a];if(t(i,n)>=0){break}r[e]=n;e=a}r[e]=i},zP:function(e){var r=this.data;var t=this.compare;var i=this.length>>1;var a=r[e];while(e<i){var n=(e<<1)+1;var o=n+1;var f=r[n];if(o<this.length&&t(r[o],f)<0){n=o;f=r[o]}if(t(f,a)>=0){break}r[e]=f;e=n}r[e]=a}};re.default=te;var ae=Math.max;var ne=Math.min;var T=0;function oe(e,r,t,i,a,n){var o,f,s,u,l,v;for(o=0,f=e.length-1;o<f;o++){s=e[o];u=e[o+1];l=new d(s,false,undefined,r);v=new d(u,false,l,r);l.IP=v;if(s[0]===u[0]&&s[1]===u[1]){continue}l.UP=v.UP=t;if(!n){l.DP=false;v.DP=false}if(x(l,v)>0){v.left=true}else{l.left=true}var c=s[0],h=s[1];a[0]=ne(a[0],c);a[1]=ne(a[1],h);a[2]=ae(a[2],c);a[3]=ae(a[3],h);i.push(l);i.push(v)}}function fe(e,r,t,i,a){var n=new re(null,x);var o,f,s,u,l,v;for(s=0,u=e.length;s<u;s++){o=e[s];for(l=0,v=o.length;l<v;l++){f=l===0;if(f){T++}oe(o[l],true,T,n,t,f)}}for(s=0,u=r.length;s<u;s++){o=r[s];for(l=0,v=o.length;l<v;l++){f=l===0;if(a===m){f=false}if(f){T++}oe(o[l],false,T,n,i,f)}}return n}var A=[];function se(e,r,t){var i=null;if(e.length*r.length===0){if(t===y){i=A}else if(t===m){i=e}else if(t===f||t===h){i=e.length===0?r:e}}return i}function ue(e,r,t,i,a){var n=null;if(t[0]>i[2]||i[0]>t[2]||t[1]>i[3]||i[1]>t[3]){if(a===y){n=A}else if(a===m){n=e}else if(a===f||a===h){n=e.concat(r)}}return n}function I(e,r,t){if(typeof e[0][0][0]===\\"number\\"){e=[e]}if(typeof r[0][0][0]===\\"number\\"){r=[r]}var i=se(e,r,t);if(i){return i===A?null:i}var a=[Infinity,Infinity,-Infinity,-Infinity];var n=[Infinity,Infinity,-Infinity,-Infinity];var o=fe(e,r,a,n,t);i=ue(e,r,a,n,t);if(i){return i===A?null:i}var f=Z(o,e,r,a,n,t);var s=ee(f);var u=[];for(var l=0;l<s.length;l++){var v=s[l];if(v.pN()){var c=[v.points];for(var h=0;h<v.vN.length;h++){var d=v.vN[h];c.push(s[d].points)}u.push(c)}}return u}function le(e,r){return I(e,r,f)}function ve(e,r){return I(e,r,m)}function ce(e,r){return I(e,r,h)}function he(e,r){return I(e,r,y)}var de={VP:f,BP:m,HP:y,WP:h};e.ZP=ve;e.qP=he;e.YP=de;e.$q=le;e.xor=ce;Object.defineProperty(e,\\"gP\\",{value:true})})});var martinez=unwrapExports(dist);var Const={vr:Math.PI/180,mr:180/Math.PI,yr:6378137};function getSphericalCrs(e,r){function t(e){switch(e){case\\"EPSG3857\\":return ProjectionManager.getProjection(\\"EPSG:3857\\");case\\"EPSG4326\\":return ProjectionManager.getProjection(\\"EPSG:4326\\")}return ProjectionManager.getProjection(\\"EPSG3857\\")}var i=t(e);return{project:function(e){if(Util$3.isArray(e)){e=new LngLat$2(e[0],e[1])}return i.project(e.lng,e.lat)},unproject:function(e){if(Util$3.isArray(e)){e=new Pixel(e[0],e[1])}return i.unproject(e.x,e.y)},normalizePoint:function(e){return Util$3.parseLngLatData(e)},distance:function(e,r){r=this[\\"normalizePoint\\"](r);if(Util$3.isArray(r)){return this[\\"distanceToLine\\"](e,r)}e=this[\\"normalizePoint\\"](e);var t=Const.vr;var i=Math.cos;var a=e.lat*t,n=e.lng*t,o=r.lat*t,f=r.lng*t;var s=Const.yr*2;var u=o-a;var l=f-n;var v=(1-i(u)+(1-i(l))*i(a)*i(o))/2;return s*Math.asin(Math.sqrt(v))},ringArea:function(e){e=this[\\"normalizeLine\\"](e);var r=Const.yr*Const.vr;var t=0,i=e,a=i.length;if(a<3){return 0}var n=0;for(;n<a-1;n+=1){var o=i[n];var f=i[n+1];var s=o.lng*r*Math.cos(o.lat*Const.vr);var u=o.lat*r;var l=f.lng*r*Math.cos(f.lat*Const.vr);var v=f.lat*r;t+=s*v-l*u}var c=i[n];var h=i[0];var d=c.lng*r*Math.cos(c.lat*Const.vr);var _=c.lat*r;var g=h.lng*r*Math.cos(h.lat*Const.vr);var y=h.lat*r;t+=d*y-g*_;var m=.5*Math.abs(t);return m},sphericalCalotteArea:function(e){var r=Const.yr;var t=e/r;var i=r-r*Math.cos(t);return 2*Math.PI*r*i}}}function getPlanarCrs(){return{normalizePoint:function(e){if(e&&e[\\"x\\"]&&e[\\"y\\"]){return[e[\\"x\\"],e[\\"y\\"]]}return e},distance:function(e,r){var t=e[0]-r[0],i=e[1]-r[1];return Math.sqrt(t*t+i*i)},project:function(e){return e},unproject:function(e){return e},ringArea:function(e){var r=[0,0];var t=[0,0];var i=0;var a=e[0];var n=e.length;for(var o=2;o<n;o++){var f=e[o-1];var s=e[o];r[0]=a[0]-s[0];r[1]=a[1]-s[1];t[0]=a[0]-f[0];t[1]=a[1]-f[1];i+=r[0]*t[1]-r[1]*t[0]}return i/2}}}function isClockwise(e){var r=0;var t=e.length;for(var i=0;i<t-1;i++){var a=e[i],n=e[i+1];r+=(n[0]-a[0])*(n[1]+a[1])}if(e[t-1][0]!==e[0][0]||e[t-1][1]!==e[0][1]){var a=e[t-1],n=e[0];r+=(n[0]-a[0])*(n[1]+a[1])}return r>0}var GeometryUtilCls=function(){function r(e){this.CLASS_NAME=\\"AMap.GeometryUtil\\";this._opts=assign({onSegmentTolerance:5,crs:\\"EPSG3857\\",maxZoom:zoomRange[1]},e);this[\\"setCrs\\"](this._opts[\\"crs\\"])}r.prototype[\\"clone\\"]=function(e){return new r(assign({},this._opts,e))};r.prototype[\\"isPoint\\"]=function(e){return e&&(e instanceof LngLat$2||Util$3.isArray(e)&&!isNaN(e[0]))};r.prototype[\\"normalizePoint\\"]=function(e){return e};r.prototype[\\"normalizeLine\\"]=function(e){var r=[];for(var t=0,i=e.length;t<i;t++){r.push(this[\\"normalizePoint\\"](e[t]))}return r};r.prototype[\\"normalizeMultiLines\\"]=function(e){if(Util$3.isArray(e)&&this[\\"isPoint\\"](e[0])){e=[e]}var r=[];for(var t=0,i=e.length;t<i;t++){r.push(this[\\"normalizeLine\\"](e[t]))}return r};r.prototype[\\"setCrs\\"]=function(e){var r;if(e&&e[\\"project\\"]&&e[\\"unproject\\"]){r=e}else if(e===\\"plane\\"){r=getPlanarCrs()}else{r=getSphericalCrs(e,this._opts[\\"maxZoom\\"])}assign(this,r);return};r.prototype[\\"distance\\"]=function(e,r){throw new Error(\\"distance Not implemented!\\")};r.prototype.xr=function(e,r){e=this[\\"normalizeLine\\"](e);if(!this[\\"isPoint\\"](e[0])){e=e[0]}var t=[];for(var i=0,a=e.length;i<a;i++){t.push(this[\\"project\\"](e[i]))}if(r===true){t=this[\\"makesureClockwise\\"](t)}else if(r===false){t=this[\\"makesureClockwise\\"](t);t.reverse()}return t};r.prototype.br=function(e){var r=[];for(var t=0,i=e.length;t<i;t++){r.push(this[\\"unproject\\"](e[t]))}return r};r.prototype[\\"closestOnSegment\\"]=function(e,r,t){var i=Coordinate.closestOnSegment(this[\\"project\\"](e),this.xr([r,t]));return this[\\"unproject\\"](i)};r.prototype[\\"closestOnLine\\"]=function(e,r){r=this[\\"normalizeLine\\"](r);var t=Infinity,i;for(var a=0,n=r.length;a<n-1;a++){var o=this[\\"closestOnSegment\\"](e,r[a],r[a+1]),f=this[\\"distance\\"](e,o);if(f<t){t=f;i=o}}return i};r.prototype[\\"distanceToSegment\\"]=function(e,r,t){return this[\\"distanceToLine\\"](e,[r,t])};r.prototype[\\"distanceToLine\\"]=function(e,r){r=this[\\"normalizeLine\\"](r);if(!this[\\"isPoint\\"](r[0])){r=r[0]}var t=Infinity;for(var i=0,a=r.length;i<a-1;i++){var n=this[\\"closestOnSegment\\"](e,r[i],r[i+1]);t=Math.min(t,this[\\"distance\\"](e,n))}return t};r.prototype[\\"distanceToPolygon\\"]=function(e,r){if(this[\\"isPointInRing\\"](e,r)){return 0}else{return this[\\"distanceToLine\\"](e,r)}};r.prototype[\\"isPointOnSegment\\"]=function(e,r,t,i){if(!i&&i!==0||i<0){i=this._opts[\\"onSegmentTolerance\\"]}return this[\\"distanceToSegment\\"](e,r,t)<=i};r.prototype[\\"isPointOnLine\\"]=function(e,r,t){r=this[\\"normalizeLine\\"](r);for(var i=0,a=r.length;i<a-1;i++){if(this[\\"isPointOnSegment\\"](e,r[i],r[i+1],t)){return true}}return false};r.prototype[\\"isPointOnRing\\"]=function(e,r,t){r=this[\\"normalizeLine\\"](r);for(var i=0,a=r.length;i<a;i++){if(this[\\"isPointOnSegment\\"](e,r[i],r[i===a-1?0:i+1],t)){return true}}return false};r.prototype[\\"isPointOnPolygon\\"]=function(e,r,t){r=this[\\"normalizeMultiLines\\"](r);for(var i=0,a=r.length;i<a;i++){if(this[\\"isPointOnRing\\"](e,r[i],t)){return true}}return false};r.prototype[\\"makesureClockwise\\"]=function(e){if(!isClockwise(e)){e=[].concat(e);e.reverse()}return e};r.prototype[\\"makesureAntiClockwise\\"]=function(e){if(isClockwise(e)){e=[].concat(e);e.reverse()}return e};r.prototype[\\"pointInRing\\"]=function(e,r,t){var i=false;for(var a=0;a<r.length&&!i;a++){if(f(e,r[a][0],t)){var n=false;var o=1;while(o<r[a].length&&!n){if(f(e,r[a][o],!t)){n=true}o++}if(!n){i=true}}}function f(e,r,t){var i=false;if(r[0][0]===r[r.length-1][0]&&r[0][1]===r[r.length-1][1]){r=r.slice(0,r.length-1)}for(var a=0,n=r.length-1;a<r.length;n=a++){var o=r[a][0];var f=r[a][1];var s=r[n][0];var u=r[n][1];var l=e[1]*(o-s)+f*(s-e[0])+u*(e[0]-o)===0&&(o-e[0])*(s-e[0])<=0&&(f-e[1])*(u-e[1])<=0;if(l){return!t}var v=f>e[1]!==u>e[1]&&e[0]<(s-o)*(e[1]-f)/(u-f)+o;if(v){i=!i}}return i}return i};r.prototype[\\"isPointInBbox\\"]=function(e,r){var t=Infinity;var i=Infinity;var a=-Infinity;var n=-Infinity;for(var o=0;o<r.length;o++){var f=r[o];t=Math.min(t,f[0]);a=Math.max(a,f[0]);i=Math.min(i,f[1]);n=Math.max(n,f[1])}return e[0]>t&&e[0]<a&&e[1]>i&&e[1]<n};r.prototype[\\"isPointInRing\\"]=function(e,r){r=this[\\"normalizeLine\\"](r);var t=this.xr(r,true);var i=Coordinate.ss(this[\\"project\\"](e),t,false);return i};r.prototype[\\"isRingInRing\\"]=function(e,r){for(var t=0,i=e.length;t<i;t++){if(!this[\\"isPointInRing\\"](e[t],r)){return false}}return true};r.prototype[\\"isRingInRingByOutsea\\"]=function(e,r){for(var t=0,i=e.length;t<i;t++){if(this[\\"isPointInRing\\"](e[t],r)){return true}}for(var t=0,i=r.length;t<i;t++){if(this[\\"isPointInRing\\"](r[t],e)){return true}}return false};r.prototype[\\"isRingInRingByMapbox\\"]=function(e,r){for(var t=0,i=e.length;t<i;t++){if(!this[\\"isPointInRing\\"](e[t],r)){return false}}return true};r.prototype[\\"isRingInRingByMapboxB\\"]=function(e,r){for(var t=0,i=e.length;t<i;t++){if(this[\\"isPointInRing\\"](e[t],r)){return true}}return false};r.prototype[\\"isPixelRingInRing\\"]=function(e,r){for(var t=0,i=e.length;t<i;t++){var a=Coordinate.ss(e[t],r,false);if(a){return true}}return false};r.prototype[\\"isPointInPolygon\\"]=function(e,r){r=this[\\"normalizeMultiLines\\"](r);var t;for(var i=0,a=r.length;i<a;i+=1){t=this[\\"isPointInRing\\"](e,r[i]);if(i>0){t=!t}if(!t){break}}return Boolean(t)};r.prototype[\\"isPointInPolygons\\"]=function(e,r){for(var t=0;t<r.length;t++){var i=r[t];i=this[\\"normalizeMultiLines\\"](i);var a=void 0;for(var n=0,o=i.length;n<o;n+=1){a=this[\\"isPointInRing\\"](e,i[n]);if(n>0){a=!a}if(!a){break}}if(a){return true}}return false};r.prototype[\\"doesSegmentsIntersect\\"]=function(e,r,t,i){var a=this.xr([e,r,t,i]);e=a[0];r=a[1];t=a[2];i=a[3];var n=false;var o=(i[0]-t[0])*(e[1]-t[1])-(i[1]-t[1])*(e[0]-t[0]);var f=(r[0]-e[0])*(e[1]-t[1])-(r[1]-e[1])*(e[0]-t[0]);var s=(i[1]-t[1])*(r[0]-e[0])-(i[0]-t[0])*(r[1]-e[1]);if(s!==0){var u=o/s;var l=f/s;if(0<=u&&u<=1&&0<=l&&l<=1){n=true}}return n};r.prototype[\\"doesSegmentLineIntersect\\"]=function(e,r,t){t=this[\\"normalizeLine\\"](t);for(var i=0,a=t.length;i<a-1;i++){if(this[\\"doesSegmentsIntersect\\"](e,r,t[i],t[i+1])){return true}}return false};r.prototype[\\"doesSegmentRingIntersect\\"]=function(e,r,t){t=this[\\"normalizeLine\\"](t);for(var i=0,a=t.length;i<a;i++){if(this[\\"doesSegmentsIntersect\\"](e,r,t[i],t[i===a-1?0:i+1])){return true}}return false};r.prototype[\\"doesSegmentPolygonIntersect\\"]=function(e,r,t){t=this[\\"normalizeMultiLines\\"](t);for(var i=0,a=t.length;i<a;i++){if(this[\\"doesSegmentRingIntersect\\"](e,r,t[i])){return true}}return false};r.prototype[\\"doesLineLineIntersect\\"]=function(e,r){e=this[\\"normalizeLine\\"](e);for(var t=0,i=e.length;t<i-1;t++){if(this[\\"doesSegmentLineIntersect\\"](e[t],e[t+1],r)){return true}}return false};r.prototype[\\"doesLineRingIntersect\\"]=function(e,r){e=this[\\"normalizeLine\\"](e);for(var t=0,i=e.length;t<i-1;t++){if(this[\\"doesSegmentRingIntersect\\"](e[t],e[t+1],r)){return true}}return false};r.prototype[\\"doesPolygonPolygonIntersect\\"]=function(e,r){if(this[\\"doesRingRingIntersect\\"](r,e)||this[\\"isRingInRing\\"](e,r)||this[\\"isRingInRing\\"](r,e)){return true}return false};r.prototype[\\"doesRingRingIntersect\\"]=function(e,r){e=this[\\"normalizeLine\\"](e);for(var t=0,i=e.length;t<i;t++){if(this[\\"doesSegmentRingIntersect\\"](e[t],e[t===i-1?0:t+1],r)){return true}}return false};r.prototype[\\"along\\"]=function(e,r){var t=0;for(var i=0;i<e.length-1;i+=1){var a=this[\\"distance\\"](e[i],e[i+1]);if(a+t<r){t+=a;continue}var n=(r-t)/a;return[e[i][0]+n*(e[i+1][0]-e[i][0]),e[i][1]+n*(e[i+1][1]-e[i][1]),i]}return null};r.prototype.gr=function(e,r){e=this[\\"makesureAntiClockwise\\"](e);r=this[\\"makesureClockwise\\"](r);var n,o,f,s;var t=function(e){return(o[0]-n[0])*(e[1]-n[1])>(o[1]-n[1])*(e[0]-n[0])};var i=function(){var e=[n[0]-o[0],n[1]-o[1]],r=[f[0]-s[0],f[1]-s[1]],t=n[0]*o[1]-n[1]*o[0],i=f[0]*s[1]-f[1]*s[0],a=1/(e[0]*r[1]-e[1]*r[0]);return[(t*r[0]-i*e[0])*a,(t*r[1]-i*e[1])*a]};var a=e;n=r[r.length-1];for(var u=0,l=r.length;u<l;u++){o=r[u];var v=a;a=[];f=v[v.length-1];for(var c=0,h=v.length;c<h;c++){s=v[c];if(t(s)){if(!t(f)){a.push(i())}a.push(s)}else if(t(f)){a.push(i())}f=s}n=o}return a};r.prototype[\\"ringRingClip\\"]=function(e,r){e=this.xr(e);r=this.xr(r);if(!isEqual(e[0],e[e.length-1])){e.push(e[0].slice())}if(!isEqual(r[0],r[r.length-1])){r.push(r[0].slice())}var t=martinez.qP([e],[r]);if(!t||!t[0]||!t[0][0]){return[]}return this.br(t[0][0])};r.prototype[\\"ringArea\\"]=function(e){throw new Error(\\"distance Not implemented!\\")};r.prototype[\\"distanceOfLine\\"]=function(e){e=this[\\"normalizeLine\\"](e);var r=0;for(var t=0,i=e.length;t<i-1;t++){r+=this[\\"distance\\"](e[t],e[t+1])}return r};r.prototype[\\"isClockwise\\"]=function(e){e=this.xr(e);return isClockwise(e)};r.prototype[\\"typePolygon\\"]=function(e){if(!isArray(e)||!isArray(e[0])){return\\"never\\"}if(e[0][0].length===2||e[0][0]instanceof LngLat$2){return\\"Polygon\\"}else if(e[0][0].length>2&&(e[0][0][0].length===2||e[0][0][0]instanceof LngLat$2)){return\\"MultiPolygon\\"}else{return\\"never\\"}};return r}();var GeometryUtilInstance=new GeometryUtilCls({});var PlaneGeometryUtilInstance=new GeometryUtilCls({});PlaneGeometryUtilInstance[\\"setCrs\\"](\\"plane\\");var GeometryUtil={distance:GeometryUtilInstance.distance.bind(GeometryUtilInstance),ringArea:GeometryUtilInstance.ringArea.bind(GeometryUtilInstance),isClockwise:GeometryUtilInstance.isClockwise.bind(GeometryUtilInstance),typePolygon:GeometryUtilInstance.typePolygon.bind(GeometryUtilInstance),makesureClockwise:GeometryUtilInstance.makesureClockwise.bind(GeometryUtilInstance),makesureAntiClockwise:GeometryUtilInstance.makesureAntiClockwise.bind(GeometryUtilInstance),distanceOfLine:GeometryUtilInstance.distanceOfLine.bind(GeometryUtilInstance),ringRingClip:GeometryUtilInstance.ringRingClip.bind(GeometryUtilInstance),doesSegmentsIntersect:GeometryUtilInstance.doesSegmentsIntersect.bind(GeometryUtilInstance),doesSegmentLineIntersect:GeometryUtilInstance.doesSegmentLineIntersect.bind(GeometryUtilInstance),doesSegmentRingIntersect:GeometryUtilInstance.doesSegmentRingIntersect.bind(GeometryUtilInstance),doesSegmentPolygonIntersect:GeometryUtilInstance.doesSegmentPolygonIntersect.bind(GeometryUtilInstance),doesLineLineIntersect:GeometryUtilInstance.doesLineLineIntersect.bind(GeometryUtilInstance),doesLineRingIntersect:GeometryUtilInstance.doesLineRingIntersect.bind(GeometryUtilInstance),doesRingRingIntersect:GeometryUtilInstance.doesRingRingIntersect.bind(GeometryUtilInstance),pointInRing:GeometryUtilInstance.pointInRing.bind(GeometryUtilInstance),isPointInRing:GeometryUtilInstance.isPointInRing.bind(GeometryUtilInstance),isPointInBbox:GeometryUtilInstance.isPointInBbox.bind(GeometryUtilInstance),isRingInRing:GeometryUtilInstance.isRingInRing.bind(GeometryUtilInstance),isPointInPolygon:GeometryUtilInstance.isPointInPolygon.bind(GeometryUtilInstance),isPointInPolygons:GeometryUtilInstance.isPointInPolygons.bind(GeometryUtilInstance),isPointOnSegment:GeometryUtilInstance.isPointOnSegment.bind(GeometryUtilInstance),isPointOnLine:GeometryUtilInstance.isPointOnLine.bind(GeometryUtilInstance),isPointOnRing:GeometryUtilInstance.isPointOnRing.bind(GeometryUtilInstance),isPointOnPolygon:GeometryUtilInstance.isPointOnPolygon.bind(GeometryUtilInstance),closestOnSegment:GeometryUtilInstance.closestOnSegment.bind(GeometryUtilInstance),closestOnLine:GeometryUtilInstance.closestOnLine.bind(GeometryUtilInstance),distanceToSegment:GeometryUtilInstance.distanceToSegment.bind(GeometryUtilInstance),distanceToLine:GeometryUtilInstance.distanceToLine.bind(GeometryUtilInstance)};var PlaneGeometryUtil={distance:PlaneGeometryUtilInstance.distance.bind(PlaneGeometryUtilInstance),ringArea:PlaneGeometryUtilInstance.ringArea.bind(PlaneGeometryUtilInstance),isClockwise:PlaneGeometryUtilInstance.isClockwise.bind(PlaneGeometryUtilInstance),typePolygon:PlaneGeometryUtilInstance.typePolygon.bind(PlaneGeometryUtilInstance),makesureClockwise:PlaneGeometryUtilInstance.makesureClockwise.bind(PlaneGeometryUtilInstance),makesureAntiClockwise:PlaneGeometryUtilInstance.makesureAntiClockwise.bind(PlaneGeometryUtilInstance),distanceOfLine:PlaneGeometryUtilInstance.distanceOfLine.bind(PlaneGeometryUtilInstance),ringRingClip:PlaneGeometryUtilInstance.ringRingClip.bind(PlaneGeometryUtilInstance),doesSegmentsIntersect:PlaneGeometryUtilInstance.doesSegmentsIntersect.bind(PlaneGeometryUtilInstance),doesSegmentLineIntersect:PlaneGeometryUtilInstance.doesSegmentLineIntersect.bind(PlaneGeometryUtilInstance),doesSegmentRingIntersect:PlaneGeometryUtilInstance.doesSegmentRingIntersect.bind(PlaneGeometryUtilInstance),doesSegmentPolygonIntersect:PlaneGeometryUtilInstance.doesSegmentPolygonIntersect.bind(PlaneGeometryUtilInstance),doesLineLineIntersect:PlaneGeometryUtilInstance.doesLineLineIntersect.bind(PlaneGeometryUtilInstance),doesLineRingIntersect:PlaneGeometryUtilInstance.doesLineRingIntersect.bind(PlaneGeometryUtilInstance),doesRingRingIntersect:PlaneGeometryUtilInstance.doesRingRingIntersect.bind(PlaneGeometryUtilInstance),pointInRing:PlaneGeometryUtilInstance.pointInRing.bind(PlaneGeometryUtilInstance),isPointInRing:PlaneGeometryUtilInstance.isPointInRing.bind(PlaneGeometryUtilInstance),isPointInBbox:PlaneGeometryUtilInstance.isPointInBbox.bind(PlaneGeometryUtilInstance),isRingInRing:PlaneGeometryUtilInstance.isRingInRing.bind(PlaneGeometryUtilInstance),isPointInPolygon:PlaneGeometryUtilInstance.isPointInPolygon.bind(PlaneGeometryUtilInstance),isPointInPolygons:PlaneGeometryUtilInstance.isPointInPolygons.bind(PlaneGeometryUtilInstance),isPointOnSegment:PlaneGeometryUtilInstance.isPointOnSegment.bind(PlaneGeometryUtilInstance),isPointOnLine:PlaneGeometryUtilInstance.isPointOnLine.bind(PlaneGeometryUtilInstance),isPointOnRing:PlaneGeometryUtilInstance.isPointOnRing.bind(PlaneGeometryUtilInstance),isPointOnPolygon:PlaneGeometryUtilInstance.isPointOnPolygon.bind(PlaneGeometryUtilInstance),closestOnSegment:PlaneGeometryUtilInstance.closestOnSegment.bind(PlaneGeometryUtilInstance),closestOnLine:PlaneGeometryUtilInstance.closestOnLine.bind(PlaneGeometryUtilInstance),distanceToSegment:PlaneGeometryUtilInstance.distanceToSegment.bind(PlaneGeometryUtilInstance),distanceToLine:PlaneGeometryUtilInstance.distanceToLine.bind(PlaneGeometryUtilInstance)};var LngLat$2=function(){function o(e,r,t){if(t===void 0){t=false}this.className=\\"AMap.LngLat\\";if(isNumberArray(e)){e=parseFloat(e[0]);r=parseFloat(e[1])}else{r=parseFloat(r);e=parseFloat(e)}if(isNaN(e)||isNaN(r)){if(!window._AMapConfig){throw Error(\\"Invalid Object: LngLat(\\"+e+\\", \\"+r+\\")\\")}}if(t!==true){r=Math.max(Math.min(r,90),-90);e=(e+180)%360+(e<-180||e===180?180:-180)}this.kT=r;this.KL=e;this.lng=Math.round(e*1e6)/1e6;this.lat=Math.round(r*1e6)/1e6;this.pos=ProjectionManager.getProjection(\\"EPSG:3857\\").project(e,r)}o.from=function(e){if(isLngLat(e)){return new o(e.KL,e.kT)}return new o(e[0],e[1])};o.prototype[\\"setLng\\"]=function(e){this.KL=e;this.lng=Math.round(e*1e6)/1e6;return this};o.prototype[\\"setLat\\"]=function(e){this.kT=e;this.lat=Math.round(e*1e6)/1e6;return this};o.prototype[\\"getLng\\"]=function(){return this.lng};o.prototype[\\"getLat\\"]=function(){return this.lat};o.prototype[\\"equals\\"]=function(e){e=parseLngLatData(e);if(!(e instanceof o)){return false}var r=Math.max(Math.abs(this.kT-e.kT),Math.abs(this.KL-e.KL));return r<=1e-9};o.prototype[\\"add\\"]=function(e,r){return new o(this.KL+e.KL,this.kT+e.kT,r)};o.prototype[\\"subtract\\"]=function(e,r){return new o(this.KL-e.KL,this.kT-e.kT,r)};o.prototype[\\"divideBy\\"]=function(e,r){return new o(this.KL/e,this.kT/e,r)};o.prototype[\\"multiplyBy\\"]=function(e,r){return new o(this.KL*e,this.kT*e,r)};o.prototype[\\"offset\\"]=function(e,r){if(isNaN(e)||isNaN(r)){throw Error(\\"valid offset args, require number\\")}var t=2*Math.asin(Math.sin(Math.round(e)/(2*6378137))/Math.cos(this.kT*Math.PI/180));var i=this.KL+t*180/Math.PI;var a=2*Math.asin(Math.round(r)/(2*6378137));var n=this.kT+a*180/Math.PI;return new o(i,n)};o.prototype[\\"toString\\"]=function(){return this.lng+\\",\\"+this.lat};o.prototype[\\"toArray\\"]=function(){return[this.lng,this.lat]};o.prototype[\\"toJSON\\"]=function(){return[this.lng,this.lat]};o.prototype[\\"distanceTo\\"]=function(e){return GeometryUtil[\\"distance\\"](this,e)};o.prototype[\\"distance\\"]=function(e){return GeometryUtil[\\"distance\\"](this,e)};return o}();var Size=function(){function e(e,r,t){if(t===void 0){t=false}this.className=\\"AMap.Size\\";if(isNaN(e)||isNaN(r)){throw new Error(\\"Invalid Object: Pixel(\\"+e+\\", \\"+r+\\")\\")}this[\\"width\\"]=t?Math.round(e):Number(e);this[\\"height\\"]=t?Math.round(r):Number(r)}e.prototype[\\"getWidth\\"]=function(){return this.width};e.prototype[\\"getHeight\\"]=function(){return this.height};e.prototype[\\"toString\\"]=function(){return this.width+\\",\\"+this.height};e.prototype[\\"toArray\\"]=function(){return[this.width,this.height]};return e}();var easing=function(){var o={};var f=4;var l=.001;var s=1e-7;var u=10;var v=11;var c=1/(v-1);var h=typeof Float32Array===\\"function\\";function i(e,r){return 1-3*r+3*e}function a(e,r){return 3*r-6*e}function n(e){return 3*e}function d(e,r,t){return((i(r,t)*e+a(r,t))*e+n(r))*e}function _(e,r,t){return 3*i(r,t)*e*e+2*a(r,t)*e+n(r)}function g(e,r,t,i,a){var n,o,f=0;do{o=r+(t-r)/2;n=d(o,i,a)-e;if(n>0){t=o}else{r=o}}while(Math.abs(n)>s&&++f<u);return o}function y(e,r,t,i){for(var a=0;a<f;++a){var n=_(r,t,i);if(n===0){return r}var o=d(r,t,i)-e;r-=o/n}return r}function m(e){return e}return function(f,r,s,t){if(!(0<=f&&f<=1&&0<=s&&s<=1)){throw new Error(\\"bezier x values must be in [0, 1] range\\")}var e=arguments.toString();if(o[e]){return o[e]}if(f===r&&s===t){return m}var u=h?new Float32Array(v):new Array(v);for(var i=0;i<v;++i){u[i]=d(i*c,f,s)}function a(e){var r=0;var t=1;var i=v-1;for(;t!==i&&u[t]<=e;++t){r+=c}--t;var a=(e-u[t])/(u[t+1]-u[t]);var n=r+a*c;var o=_(n,f,s);if(o>=l){return y(e,n,f,s)}else if(o===0){return n}else{return g(e,r,r+c,f,s)}}var n=function(e){if(e===0){return 0}if(e===1){return 1}return d(a(e),r,t)};o[e]=n;return n}}();function getQuadBezierValue(e,r,t,i){if(e>=1){return i}var a=1-e;return a*a*r+2*a*e*t+e*e*i}function cubic(e,r,t,i,a){if(e>=1){return a}var n=3*(t.pos[0]-r.pos[0]),o=3*(i.pos[0]-t.pos[0])-n,f=a.pos[0]-r.pos[0]-n-o;var s=3*(t.pos[1]-r.pos[1]),u=3*(i.pos[1]-t.pos[1])-s,l=a.pos[1]-r.pos[1]-s-u;var v=f*Math.pow(e,3)+o*Math.pow(e,2)+n*e+r.pos[0];var c=l*Math.pow(e,3)+u*Math.pow(e,2)+s*e+r.pos[1];return ProjectionManager.getProjection(\\"EPSG:3857\\").unproject(v,c)}function quad(e,r,t,i){return ProjectionManager.getProjection(\\"EPSG:3857\\").unproject(getQuadBezierValue(e,r.pos[0],t.pos[0],i.pos[0]),getQuadBezierValue(e,r.pos[1],t.pos[1],i.pos[1]))}function p20CoordsToLngLat(e,r){if(Array.isArray(r)){r=new Pixel(r[0],r[1])}return e.ai(r,20)}function getSplitNum(e,r){var t={tolerance:4,interpolateNumLimit:[3,300]};var i=t[\\"tolerance\\"],a=t[\\"interpolateNumLimit\\"];i=Math.max(2,i);var n=0,o=0;for(var f=0,s=e.length;f<s-1;f++){var u=e[f],l=e[f+1];n+=Math.abs(l.pos[0]-u.pos[0]);o+=Math.abs(l.pos[1]-u.pos[1])}return Math.min(a[1],Math.max(a[0],Math.round(Math.max(n,o)/r/i)))}function interpolateCoords(e,r){var t=null;switch(r.length){case 3:t=quad;break;case 4:t=cubic;break;default:return null}var i=[];var a=[0].concat(r);for(var n=1;n<e-2;n++){a[0]=n/e;i.push(t.apply(null,a))}i.push(r[r.length-1]);return i}function getCoordsWithControlPoints(e,r,t,i){var a=null;if(e&&t&&t.length){var n=[e];n.push.apply(n,t);n.push(r);var o=n.length;var f=getSplitNum(n,i);a=interpolateCoords(f,n)}return a||[r]}var BezierUtil={ag:quad,ug:cubic,sg:easing,xb:function(e,r){var t,i,a=[];for(t=0,i=e.length;t<i;t+=1){a.push.apply(a,getCoordsWithControlPoints(e[t-1],e[t],e[t][\\"controlPoints\\"],r))}return a},fg:function(e,r,t,i){var a=this.xb(e,r,t,i);var n=[];for(var o=0,f=a.length;o<f;o++){n.push(p20CoordsToLngLat(r,a[o]))}return n}};var TagMap={2:\\"all\\",3:\\"all\\",4:\\"all\\",5:\\"all\\",6:\\"lite\\",7:\\"all\\",8:\\"lite\\",9:\\"all\\",10:\\"lite\\",11:\\"lite\\",12:\\"all\\",13:\\"all\\",14:\\"all\\",15:\\"lite\\",16:\\"lite\\",17:\\"all\\",18:\\"all\\",19:\\"all\\",20:\\"all\\"};var colorNameDist={aliceblue:\\"#f0f8ff\\",antiquewhite:\\"#faebd7\\",aqua:\\"#00ffff\\",aquamarine:\\"#7fffd4\\",azure:\\"#f0ffff\\",beige:\\"#f5f5dc\\",bisque:\\"#ffe4c4\\",black:\\"#000000\\",blanchedalmond:\\"#ffebcd\\",blue:\\"#0000ff\\",blueviolet:\\"#8a2be2\\",brown:\\"#a52a2a\\",burlywood:\\"#deb887\\",cadetblue:\\"#5f9ea0\\",chartreuse:\\"#7fff00\\",chocolate:\\"#d2691e\\",coral:\\"#ff7f50\\",cornflowerblue:\\"#6495ed\\",cornsilk:\\"#fff8dc\\",crimson:\\"#dc143c\\",cyan:\\"#00ffff\\",darkblue:\\"#00008b\\",darkcyan:\\"#008b8b\\",darkgoldenrod:\\"#b8860b\\",darkgray:\\"#a9a9a9\\",darkgreen:\\"#006400\\",darkkhaki:\\"#bdb76b\\",darkmagenta:\\"#8b008b\\",darkolivegreen:\\"#556b2f\\",darkorange:\\"#ff8c00\\",darkorchid:\\"#9932cc\\",darkred:\\"#8b0000\\",darksalmon:\\"#e9967a\\",darkseagreen:\\"#8fbc8f\\",darkslateblue:\\"#483d8b\\",darkslategray:\\"#2f4f4f\\",darkturquoise:\\"#00ced1\\",darkviolet:\\"#9400d3\\",deeppink:\\"#ff1493\\",deepskyblue:\\"#00bfff\\",dimgray:\\"#696969\\",dodgerblue:\\"#1e90ff\\",firebrick:\\"#b22222\\",floralwhite:\\"#fffaf0\\",forestgreen:\\"#228b22\\",fuchsia:\\"#ff00ff\\",gainsboro:\\"#dcdcdc\\",ghostwhite:\\"#f8f8ff\\",gold:\\"#ffd700\\",goldenrod:\\"#daa520\\",grey:\\"#808080\\",gray:\\"#808080\\",green:\\"#008000\\",greenyellow:\\"#adff2f\\",honeydew:\\"#f0fff0\\",hotpink:\\"#ff69b4\\",indianred:\\"#cd5c5c\\",indigo:\\"#4b0082\\",ivory:\\"#fffff0\\",khaki:\\"#f0e68c\\",lavender:\\"#e6e6fa\\",lavenderblush:\\"#fff0f5\\",lawngreen:\\"#7cfc00\\",lemonchiffon:\\"#fffacd\\",lightblue:\\"#add8e6\\",lightcoral:\\"#f08080\\",lightcyan:\\"#e0ffff\\",lightgoldenrodyellow:\\"#fafad2\\",lightgrey:\\"#d3d3d3\\",lightgreen:\\"#90ee90\\",lightpink:\\"#ffb6c1\\",lightsalmon:\\"#ffa07a\\",lightseagreen:\\"#20b2aa\\",lightskyblue:\\"#87cefa\\",lightslategray:\\"#778899\\",lightsteelblue:\\"#b0c4de\\",lightyellow:\\"#ffffe0\\",lime:\\"#00ff00\\",limegreen:\\"#32cd32\\",linen:\\"#faf0e6\\",magenta:\\"#ff00ff\\",maroon:\\"#800000\\",mediumaquamarine:\\"#66cdaa\\",mediumblue:\\"#0000cd\\",mediumorchid:\\"#ba55d3\\",mediumpurple:\\"#9370d8\\",mediumseagreen:\\"#3cb371\\",mediumslateblue:\\"#7b68ee\\",mediumspringgreen:\\"#00fa9a\\",mediumturquoise:\\"#48d1cc\\",mediumvioletred:\\"#c71585\\",midnightblue:\\"#191970\\",mintcream:\\"#f5fffa\\",mistyrose:\\"#ffe4e1\\",moccasin:\\"#ffe4b5\\",navajowhite:\\"#ffdead\\",navy:\\"#000080\\",oldlace:\\"#fdf5e6\\",olive:\\"#808000\\",olivedrab:\\"#6b8e23\\",orange:\\"#ffa500\\",orangered:\\"#ff4500\\",orchid:\\"#da70d6\\",palegoldenrod:\\"#eee8aa\\",palegreen:\\"#98fb98\\",paleturquoise:\\"#afeeee\\",palevioletred:\\"#d87093\\",papayawhip:\\"#ffefd5\\",peachpuff:\\"#ffdab9\\",peru:\\"#cd853f\\",pink:\\"#ffc0cb\\",plum:\\"#dda0dd\\",powderblue:\\"#b0e0e6\\",purple:\\"#800080\\",rebeccapurple:\\"#663399\\",red:\\"#ff0000\\",rosybrown:\\"#bc8f8f\\",royalblue:\\"#4169e1\\",saddlebrown:\\"#8b4513\\",salmon:\\"#fa8072\\",sandybrown:\\"#f4a460\\",seagreen:\\"#2e8b57\\",seashell:\\"#fff5ee\\",sienna:\\"#a0522d\\",silver:\\"#c0c0c0\\",skyblue:\\"#87ceeb\\",slateblue:\\"#6a5acd\\",slategray:\\"#708090\\",snow:\\"#fffafa\\",springgreen:\\"#00ff7f\\",steelblue:\\"#4682b4\\",tan:\\"#d2b48c\\",teal:\\"#008080\\",thistle:\\"#d8bfd8\\",tomato:\\"#ff6347\\",turquoise:\\"#40e0d0\\",violet:\\"#ee82ee\\",wheat:\\"#f5deb3\\",white:\\"#ffffff\\",whitesmoke:\\"#f5f5f5\\",yellow:\\"#ffff00\\",yellowgreen:\\"#9acd32\\"};var Util$3=function(){var s={CLASS_NAME:\\"AMap.Util\\",WorldAxesCenter:{x:0,y:0},Single:{},stamp:function(){var r=Browser.DW===true;var t=1e5;var i=\\"_amap_id\\";return function(e){e[i]=r?++t:--t;return e[i]}}(),singlton:function(e){var r=c.Single;var t=r[e];if(!t){t=new e}return t},getOptimalZoom:function(e){return e<Math.floor(e)+.8?Math.floor(e):Math.ceil(e)},join:function(e,r){if(e.join){return e.join(r)}else{var t=[];for(var i in e){if(e.hasOwnProperty(i)){t.push(i+\\"=\\"+(e[i]||\\"\\"))}}return t.join(r)}},getGuid:function(e,r){if(r===void 0){r=10}return(e||\\"\\")+Math.round(Math.random()*Math.pow(10,r))+\\"_\\"+(new Date).getTime()},uuid:function(){var o=\\"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\\".split(\\"\\");return function(e,r){if(e===void 0){e=0}if(r===void 0){r=62}var t=o;var i=[];var a;r=r||t.length;if(e){for(a=0;a<e;a++){i[a]=t[0|Math.random()*r]}}else{var n=void 0;i[8]=i[13]=i[18]=i[23]=\\"-\\";i[14]=\\"4\\";for(a=0;a<36;a++){if(!i[a]){n=0|Math.random()*16;i[a]=t[a===19?n&3|8:n]}}}return i.join(\\"\\")}}(),endsWith:function(e,r){if(e[\\"endsWith\\"]){return e[\\"endsWith\\"](r)}if(e.length<r.length){return false}if(e.substr(e.length-r.length)===r){return true}return false},mg:[],gg:268435456,wg:[215440491,106744817],Mg:{start:function(r){r.startTime=new Date;r.jg=[];var t=(new Date).getTime();var i=function(){var e=(new Date).getTime();r.jg.push(e-t);t=e;r.id=c.requestAnimFrame(i)};r.id=c.requestAnimFrame(i)},cancel:function(e){if(e.id){c.cancelAnimFrame(e.id)}},stop:function(e){e.Ag=Date.now()-e.startTime;this.cancel(e);e.Mg=Math.round(1e3/(e.Ag/(e.jg.length+1)))}},kg:function(e,r,t,i,a){if(i===void 0){i=\\"linear\\"}if(a===void 0){a=false}if(e===r){return r}else{switch(i){case\\"ease\\":t=BezierUtil.sg(.25,.1,.25,1)(t);break;case\\"ease-in\\":t=BezierUtil.sg(.42,0,1,1)(t);break;case\\"ease-out\\":t=BezierUtil.sg(0,0,.58,1)(t);break;case\\"ease-in-out\\":t=BezierUtil.sg(.42,0,.58,1)(t);break}var n=e+(r-e)*t;if(a){n=n>>0}return n}},createObjectURL:function(e,r){if(r===void 0){r=\\"text/javascript; charset=utf-8\\"}var t=null;try{var i=globalInstance[\\"URL\\"]||globalInstance[\\"webkitURL\\"];t=i[\\"createObjectURL\\"](new Blob([e],{type:r}))}catch(e){t=null}return t},revokeObjectURL:function(e){try{var r=globalInstance[\\"URL\\"]||globalInstance[\\"webkitURL\\"];r[\\"revokeObjectURL\\"](e)}catch(e){}},Og:function(e){var r={};for(var t=0,i=e.length;t<i;t++){r[e[t]]=t}return r},EV:function(e,r){var t=Math.pow(2,r);var i=360/t;var a=180/t;var n=Math.floor(e[0]/i)+t/2;var o=t/2-Math.ceil(e[1]/a);return[n,o]},WY:function(e,r,t){if(t===void 0){t=false}var i=[e[0],e[3]];var a=[e[2],e[1]];var n=this.EV(i,r);var o=this.EV(a,r);var f=n[0];var s=n[1];var u=o[0];var l=o[1];if(t){return{ja:f,Fa:s,Oa:u,Ea:l,z:r}}this.Pa={ja:f,Fa:s,Oa:u,Ea:l,z:r};var v=[];for(var c=f;c<=u;c+=1){for(var h=s;h<=l;h+=1){v.push([r,c,h])}}return v},xg:function(e){var r={};if(c.is(e,\\"object\\")){for(var t in e){if(e.hasOwnProperty(t)){r[e[t]]=t}}}return r},Ig:function(e,r){if(r.length<5e4){e.push.apply(e,r);return}for(var t=0,i=r.length;t<i;t+=1){e.push(r[t])}},clone:function(e){if(typeof e===\\"object\\"&&e!==null){if(e.Tg||this.is(e,\\"Float32Array\\")||this.is(e,\\"Uint16Array\\")){return e}else{var r=this.isArray(e)?[]:{};for(var t in e){if(e.hasOwnProperty(t)){r[t]=c.clone(e[t])}}return r}}else{return e}},isInteger:function(e){return(e|0)===e},vB:function(e){return!isNaN(e)},setPrototypeOf:function(){if(typeof Object[\\"setPrototypeOf\\"]===\\"function\\"){return Object[\\"setPrototypeOf\\"]}else{return function(e,r){for(var t in r){e[t]=r[t]}}}}(),isFunction:function(e){return typeof e===\\"function\\"},_g:function(e,r){if(r===void 0){r=\\"webgl\\"}if(!e){return e}var t=[];for(var i=0,a=e.length;i<a;i+=2){var n=parseInt(e.substr(i,2),16);if(r===\\"webgl\\"||r===\\"rgba\\"&&i===0){n=this.format(n/255,3)}t.push(n)}t.push(t.shift());return t},Sg:function(){},keys:function(){if(typeof Object.keys===\\"function\\"){return Object.keys}else{return function(e){var r=[];for(var t in e){if(e.hasOwnProperty(t)){r.push(t)}}return r}}}(),map:function(i,a,n){if(n===void 0){n=null}var o=[];if(i&&i.length){c.Cg(i,function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}var t=e[1];o[t]=a.apply(n||i,e)})}else{return i}return o},forEach:function(e,r){if(e&&e.length){var t=e.length;if(t>0){r(e[0],0);if(t>1){r(e[1],1);for(var i=2;i<t;i++){r(e[i],i)}}}}},Cg:function(e,r,t){if(t===void 0){t=null}if(e&&e.length){for(var i=0,a=e.length;i<a;i++){if(r.call(t,e[i],i,e)===false){break}}}},find:function(e,r,t){if(t===void 0){t=null}for(var i=0,a=e.length;i<a;i++){if(typeof r===\\"function\\"){if(r.call(t,e[i],i,e)){return e[i]}}else{if(e[i]===r){return e[i]}}}return null},isDOM:function(e){if(typeof HTMLElement===\\"object\\"){return e instanceof HTMLElement}else{return e&&typeof e===\\"object\\"&&e.nodeType===1&&typeof e.nodeName===\\"string\\"}},Eg:function(e,r){var t=\\"ASDFGHJKLQWERTYUIO!sdfghjkleiu3~yr5-P&mq9`%zCN*b=8@^xpVM\\";r=r||\\"v5\\";var i,a;if(r>\\"v5\\"){i=t.length;a=512}else{i=27;t=t.substr(0,27);a=333}var n,o,f,s,u;o=[];f=NaN;for(s=0,u=e.length;s<u;s++){n=e[s];n=t.indexOf(n);if(isNaN(f)){f=n*i}else{o.push(f+n-a);f=NaN}}return o},Ng:function(e,r){var t=1;if(r.length>512){t=Math.round(Math.pow(r.length,.5))}else{t=r.length}var i=Math.ceil(r.length/t);for(var a=0;a<i;a+=1){var n=t*a;var o=n+t;if(o>r.length){o=r.length}for(var f=n;f<o;f+=1){e(r[f])}}},Lg:function(e){if(/^rgba\\\\(/.test(e)){return this.Dg(e)}else{var r=this.colorNameToHex(e);var t=r;if(r[0]===\\"#\\"){r=r.substring(1);if(r.length===3){r=r.replace(/./g,function(e){return e+e})}t=this.argbHex2Rgba(r.length===8?r:\\"ff\\"+r)}return this.Dg(t)}},colorNameToHex:function(e){if(e===void 0){e=\\"\\"}e=e.toLowerCase();if(typeof e===\\"string\\"){if(colorNameDist[e]){return colorNameDist[e]}else{return e}}else{return e}},Rg:function(e,r,t){var i,a,n,o,f,s;o=Math.floor(t/2);n=t-o;i=(1<<o)-1<<n;a=(1<<n)-1;s=r&i|e&a;f=e&i|r&a;return[t,f,s]},Pg:function(e){if(e){return encodeURIComponent(e)}return\\"\\"},getStyle:function(e,r,t,i){var a,n,o;o=e[r][\\"i\\"][t];if(typeof o===\\"undefined\\"){return null}n=e[r][\\"s\\"];if(typeof o===\\"number\\"){return n[o]}while(typeof o[i.toString()]===\\"undefined\\"){i-=1;if(i<3){break}}a=o[i.toString()];if(typeof a===\\"number\\"){return n[a]}else{return null}},Dg:function(e){var r=e.split(\\",\\");r[0]=parseFloat(r[0].split(\\"rgba(\\")[1])/255;r[1]=parseFloat(r[1])/255;r[2]=parseFloat(r[2])/255;r[3]=parseFloat(r[3]);return r},Ug:function(e){var r=e.split(\\",\\");r[0]=parseFloat(r[0].split(\\"rgb(\\")[1])/255;r[1]=parseFloat(r[1])/255;r[2]=parseFloat(r[2])/255;return r},Bg:function(e){return\\"rgba(\\"+e[0]*255+\\",\\"+e[1]*255+\\",\\"+e[2]*255+\\",\\"+e[3]+\\")\\"},color2Rgba:function(e){return this.Bg(this.color2RgbaArray(e))},color2RgbaArray:function(e){if(e instanceof Array){if(e.length==3){e.push(1)}return e}var r=this.colorNameToHex(e);if(r.indexOf(\\"rgb(\\")==0){var t=this.Ug(r);t.push(1);return t}else if(r.indexOf(\\"rgba(\\")==0){return this.Dg(r)}else if(r.indexOf(\\"#\\")==0){if(r.length===4){var i=r.substr(1);var a=i.replace(/./g,function(e){return e+e});return this.zg(a)}else if(r.length==7){return this.zg(r.substr(1))}else if(r.length==9){var n=r.substr(1);return this.qg(n)}}else if(r.indexOf(\\"hsla\\")===0){var o=e.substr(5).split(\\",\\");var f=parseInt(o[0],10)/360;var s=parseInt(o[1],10)/100;var u=parseInt(o[2],10)/100;var l=parseFloat(o[3]);return this.GQ(f,s,u,l)}else if(r.indexOf(\\"hsl\\")===0){var o=e.substr(4).split(\\",\\");var f=parseInt(o[0],10)/360;var s=parseInt(o[1],10)/100;var u=parseInt(o[2],10)/100;return this.GQ(f,s,u,1)}else{if(r.length===3){var a=r.replace(/./g,function(e){return e+e});return this.zg(a)}else if(r.length==6){return this.zg(r)}else if(r.length==8){return this.qg(r)}}},GQ:function(e,r,t,i){var a;var n;var o;if(r===0){a=n=o=t}else{var f=t<.5?t*(1+r):t+r-t*r;var s=2*t-f;a=this.uQ(s,f,e+1/3);n=this.uQ(s,f,e);o=this.uQ(s,f,e-1/3)}return[a,n,o,i]},uQ:function(e,r,t){if(t<0){t+=1}if(t>1){t-=1}if(t<1/6){return e+(r-e)*6*t}if(t<1/2){return r}if(t<2/3){return e+(r-e)*(2/3-t)*6}return e},rgbHex2Rgba:function(e){if(e.startsWith(\\"#\\")){e=e.slice(1)}return c.argbHex2Rgba(\\"ff\\"+e)},argbHex2Rgba:function(e){if(e.startsWith(\\"#\\")){e=e.slice(1)}var r=[];for(var t=0,i=e.length;t<i;t+=2){r.push(parseInt(e.substr(t,2),16))}r.push((r.shift()/255).toFixed(2));return\\"rgba(\\"+r.join(\\",\\")+\\")\\"},Opacity2Rgba:function(e,r){var t=r;if(r&&r[3]&&e){r[3]=Math.floor(255*e)}return t},Hex2Rgba:function(e){if(typeof e!==\\"string\\"){return false}var r=[];for(var t=0,i=e.length;t<i;t+=2){r.push(parseInt(e.substr(t,2),16))}r.push(parseInt(r.shift()));return r},zg:function(e){return this.uE(e+\\"ff\\")},qg:function(e){var r=[];for(var t=0,i=e.length;t<i;t+=2){r.push(parseInt(e.substr(t,2),16)/255)}r.push(r.shift());return r},uE:function(e){var r=parseInt(e,16);var t=[(r>>24&255)/255,(r>>16&255)/255,(r>>8&255)/255,(r&255)/255];return t},isEmpty:function(e){for(var r in e){if(e.hasOwnProperty(r)){return false}}return true},Wg:function(e,r){if(r>=0){e.splice(r,1)}return e},startsWith:function(e,r){if(e[\\"startsWith\\"]){return e[\\"startsWith\\"](r)}else{return e.substr(0,r.length)===r}},deleteItemFromArray:function(e,r){var t=c.indexOf(e,r);return c.Wg(e,t)},deleteItemFromArrayByIndex:function(e,r){return c.Wg(e,r)},filter:function(e,t,i){var a=[];c.Cg(e,function(e,r){if(t.call(i,e,r)){a.push(e)}});return a},indexOf:function(e,r){if(!e||!e.length){return-1}if(e[\\"indexOf\\"]){return e[\\"indexOf\\"](r)}else{for(var t=0;t<e.length;t+=1){if(e[t]===r){return t}}return-1}},Gg:function(e,r){if(e[\\"endsWith\\"]){return e[\\"endsWith\\"](r)}if(e.length<r.length){return false}if(e.substr(e.length-r.length)==r){return true}return false},bind:function(){var i=false;if(Boolean(Function.prototype.bind)){i=true}return function(e,r){var t=arguments.length>2?Array.prototype.slice.call(arguments,2):null;if(i){if(t){t.unshift(r);return e.bind.apply(e,t)}else{return e.bind(r)}}else{return function(){return e.apply(r,t||arguments)}}}}(),setOptions:function(e,r){r=r||{};e.opts=assign({},e.opts,r);return e.opts},yn:function(e,r,t){return typeof r==\\"function\\"?this.Hg(e,true,this.Vg(r,t,1)):this.Hg(e,true)},Hg:function(t,i,a,e,r,n,o){var f;if(a){f=r?a(t,e,r):a(t)}if(f!==undefined){return f}if(!this.$g(t)){return t}var s=this.isArray(t);if(s){f=this.Yg(t);if(!i){return this.Kg(t,f)}}else{var u=Object.prototype.toString.call(t),l=u==\\"[object Function]\\";if(u==\\"[object Object]\\"||u==\\"[object Arguments]\\"||l&&!r){f=this.Xg(l?{}:t);if(!i){return this.baseAssign(f,t)}}else{return r?t:{}}}n||(n=[]);o||(o=[]);var v=n.length;while(v--){if(n[v]==t){return o[v]}}n.push(t);o.push(f);(s?this.Zg:this.Qg)(t,function(e,r){f[r]=c.Hg(e,i,a,r,t,n,o)});return f},baseAssign:function(e,r){return r==null?e:this.tM(r,Object.keys(r),e)},$g:function(e){var r=typeof e;return!!e&&(r==\\"object\\"||r==\\"function\\")},rM:function(e){return!!e&&typeof e==\\"object\\"},nM:function(e){return typeof e==\\"number\\"&&e>-1&&e%1==0&&e<=9007199254740991},Yg:function(e){var r=e.length,t=new Array(r);if(r&&typeof e[0]==\\"string\\"&&Object.hasOwnProperty.call(e,\\"index\\")){t.index=e.index;t.input=e.input}return t},Kg:function(e,r){var t=-1,i=e.length;r||(r=Array(i));while(++t<i){r[t]=e[t]}return r},Xg:function(e){var r=e.constructor;if(!(typeof r==\\"function\\"&&r instanceof r)){r=Object}return new r},Vg:function(n,o,e){if(typeof n!=\\"function\\"){return this.identity}if(o===undefined){return n}switch(e){case 1:return function(e){return n.call(o,e)};case 3:return function(e,r,t){return n.call(o,e,r,t)};case 4:return function(e,r,t,i){return n.call(o,e,r,t,i)};case 5:return function(e,r,t,i,a){return n.call(o,e,r,t,i,a)}}return function(){return n.apply(o,arguments)}},Zg:function(e,r){var t=-1,i=e.length;while(++t<i){if(r(e[t],t,e)===false){break}}return e},identity:function(e){return e},iM:function(s){return function(e,r,t){var i=c.eM(e),a=t(e),n=a.length,o=s?n:-1;while(s?o--:++o<n){var f=a[o];if(r(i[f],f,i)===false){break}}return e}},Qg:function(e,r){var t=c.iM();return t(e,r,Object.keys)},eM:function(e){return c.$g(e)?e:Object(e)},tM:function(e,r,t){t||(t={});var i=-1,a=r.length;while(++i<a){var n=r[i];t[n]=e[n]}return t},oM:function(){return false},aM:\\"\\",uM:function(){return Date.now?function(){return Date.now()}:function(){return(new Date).getTime()}}(),sM:function(e,r,t,i){var a;if(i){var n=0,o,f=this.uM;a=function(){o=f();if(o-n<r){return false}n=o;e.apply(t,arguments)}}else{var s,u,l;l=function(){s=false;if(u){a.apply(t,u);u=false}};a=function(){if(s){u=arguments}else{s=true;e.apply(t,arguments);setTimeout(l,r)}}}return a},format:function(e,r){if(e===e<<0){return e}return+parseFloat(e+\\"\\").toFixed(r||0)},isArray:function(){if(Array.isArray){return Array.isArray}else{return function(e){return this.is(e,\\"array\\")}}}(),is:function(e,r){return Object.prototype.toString.call(e).split(\\" \\")[1].slice(0,-1).toLowerCase()===r.toLowerCase()},includes:function(){if(typeof Array.prototype.includes===\\"function\\"){return function(e,r){return e.includes(r)}}else{return function(e,r){return this.indexOf(e,r)!==-1}}}(),fM:function(e){var r=0;if(e.length===0){return r}var t;for(var i=0,a=e.length;i<a;i+=1){t=e.charCodeAt(i);r=(r<<5)-r+t;r=r&r}return r},hM:function(e,r){r=r?Math.ceil(parseInt(r.substr(6))/24):1;var t=\\"\\";for(var i=0,a=e.length;i<a;i++){t+=String.fromCharCode((e.charCodeAt(i)-256-r+65535)%65535)}return t},cM:function(e,r){var t=(e+\\"\\").slice(-2);var i=(r+\\"\\").slice(-2);e=e.slice(0,-2);r=r.slice(0,-2);var a=parseInt((i+t).slice(1));var n=Math.ceil(a/250)%2?1:-1;var o=a/500>1?1:-1;var f=parseInt(\\"1\\"+t)/3e3;var s=parseInt(\\"1\\"+i)/3e3;e-=f*n;r-=s*o;return new LngLat$2(parseFloat(e).toFixed(5),parseFloat(r).toFixed(5))},vM:function(e){if(typeof JSON!==\\"undefined\\"&&JSON.stringify){return c.fM(JSON.stringify(e))}return null},lM:function(e,r){var t=\\"_amap_hash\\";if(r||!e.hasOwnProperty(t)){var i=c.vM(e);if(i){e[t]=i}}return e[t]},parseLngLatData:function(e){if(c.isArray(e)){if(c.isArray(e[0])){for(var r=0;r<e.length;r+=1){e[r]=c.parseLngLatData(e[r])}}else{var t=typeof e[0];if(t===\\"string\\"||t===\\"number\\"){return new LngLat$2(e[0],e[1])}else{return e}}}return e},dM:function(e){var r=[];for(var t=0,i=e.length;t<i;t+=1){r[t]=[e[t].x,e[t].y]}return r},bM:function(e){if(c.isArray(e)){return new Size(e[0],e[1])}return e},hp:function(e,r){var t=[0,0];var i=c.getOptimalZoom(r.viewState.zoom);if(e&&i>=LocalZoom){var a=lcs$2.getSize();var n=r.viewState.centerCoord;var o=lcs$2.getLocalByCoord([n[0],n[1]]);var f=e.x-o.x;var s=e.y-o.y;if(f!==0){f*=a[0];t[0]=f}if(s!==0){s*=a[1];t[1]=s}}else if(e){t[0]+=e.center[0];t[1]+=e.center[1]}return t},dS:function(e,r){return e>=r[0]&&e<=r[1]},kD:function(e,r,t){if(e===void 0){e=\\"\\"}if(t===void 0){t=false}var i=e.split(\\",\\")[0]||\\"\\";if(t){return\\"all\\"}if(i&&r){return TagMap[r]||\\"all\\"}return\\"all\\"},VF:function(e,r,t){if(t===void 0){t=false}if(t){return\\"all\\"}if(e&&r){return TagMap[r]||\\"all\\"}return\\"all\\"},LD:function(e,r){var t=false;if(!e||!r){return t}var i=this.iN(e);var a=this.iN(r);return i>=a},SD:function(e){if(e===void 0){e=\\"all\\"}var r;switch(e){case\\"lite\\":{r=0;break}case\\"left\\":{r=1;break}case\\"all\\":default:{r=2}}return r},pW:function(e){if(e===void 0){e=2}var r;switch(e){case 0:{r=NebulaTagType.LITE;break}case 1:{r=NebulaTagType.LEFT;break}case 2:default:{r=NebulaTagType.ALL}}return r},iN:function(e){var r=0;switch(e){case\\"lite\\":{r=0;break}case\\"left\\":{r=1;break}case\\"all\\":{r=2;break}}return r},loadBaxia:function(r){if(!window){r({code:\\"0\\",I8t:\\"霸下加载失败\\"})}if(window[\\"__AMap_web_baxia__\\"]){r({code:\\"2\\",I8t:\\"霸下已加载，无需重复加载\\"})}else{window[\\"__AMap_web_baxia__\\"]=true;var e=document.body||document.head;var t=document.createElement(\\"script\\");t.type=\\"text/javascript\\";t.src=\\"//g.alicdn.com/??AWSC/AWSC/awsc.js,sd/baxia-entry/baxiaCommon.js\\";t.onerror=function(e){window[\\"__AMap_web_baxia__\\"]=false;r({code:\\"0\\",I8t:\\"霸下加载失败\\"})};t.onload=function(){r({code:\\"1\\",I8t:\\"霸下加载成功\\"})};e.appendChild(t)}},A8t:function(){var e=\\"\\";return e}};(function(){var i=0;function e(e){var r=+new Date,t=Math.max(0,(Browser.HV?50:20)-(r-i));i=r+t;return globalInstance.setTimeout(e,50)}var r=function(e){globalInstance.clearTimeout(e)};if(Browser.DW){var a=e;var t=r;s[\\"requestAnimFrame\\"]=function(e,r,t,i){if(t){if(r){c.bind(e,r).call(r,i)}else{e()}}else{return a(function(){if(r){c.bind(e,r).call(r,i)}else{e()}})}};s[\\"cancelAnimFrame\\"]=function(e){if(e){t.call(globalInstance,e)}};return}function n(e){var r,t,i=[\\"webkit\\",\\"moz\\",\\"o\\",\\"ms\\"];for(r=0;r<i.length&&!t;r+=1){t=globalInstance[i[r]+e]}return t}var o=globalInstance.requestAnimationFrame||n(\\"RequestAnimationFrame\\")||e;var f=globalInstance.cancelAnimationFrame||n(\\"CancelAnimationFrame\\")||n(\\"CancelRequestAnimationFrame\\")||r;s[\\"requestAnimFrame\\"]=function(e,r,t,i){if(t){if(r){c.bind(e,r).call(r,i)}else{e()}}else{return o(function(){if(r){c.bind(e,r).call(r,i)}else{e()}})}};s[\\"cancelAnimFrame\\"]=function(e){if(e){f.call(globalInstance,e)}}})();(function(){if(Browser.DW){return}s[\\"requestIdleCallback\\"]=globalInstance[\\"requestIdleCallback\\"]?function(e,r){return globalInstance[\\"requestIdleCallback\\"](e,r)}:function(e,r){if(r===void 0){r={}}var t=c.uM();return setTimeout(function(){e({didTimeout:false,timeRemaining:function(){return Math.max(0,70-(c.uM()-t))}})},r.timeout||0)};s[\\"cancelIdleCallback\\"]=globalInstance[\\"cancelIdleCallback\\"]?function(e){return globalInstance[\\"cancelIdleCallback\\"](e)}:function(e){clearTimeout(e)}})();var c=s;return c}();var LabelFormat=function(){function e(){this.Fs={};this.Es={};this.Ts=[]}e.prototype.Ns=function(e,r){if(r.lang){this.lang=r.lang}};e.prototype.rV=function(e,r){return e};e.prototype.Ws=function(e,r){if(e===void 0){e=\\"\\"}if(r===void 0){r=[]}var t=this.Es;var i=labelsUtil$2.EQ(e,r);var a=labelsUtil$2.aQ(i);for(var n=0;n<a.length;n++){t[a[n]]=1}};e.id=\\"labelFormat\\";return e}();var SmartTypedArray$2=function(){function e(e,r){if(r===void 0){r=1024}this.type=e;this.length=0;this.uf=0;this.value=this.cf(r)}e.prototype.set=function(e){if(!this.check(e)){assert(\\"SmartTypedArray: error value\\");return}if(e.length<this.uf){this.value.set(e);return}this.cf(e.length);this.value.set(e);this.length=e.length};e.prototype.check=function(e){if(Array.isArray(e)){return true}var r=false;switch(this.type){case\\"uint8\\":r=e instanceof Uint8Array;break;case\\"int8\\":r=e instanceof Int8Array;break;case\\"uint16\\":r=e instanceof Uint16Array;break;case\\"int16\\":r=e instanceof Int16Array;break;case\\"uint32\\":r=e instanceof Uint32Array;break;case\\"int32\\":r=e instanceof Int32Array;break;case\\"float32\\":r=e instanceof Float32Array;break;case\\"float64\\":r=e instanceof Float64Array;break;default:r=false}return r};e.prototype.subarray=function(e,r){return this.value.subarray(e,r)};e.prototype.ff=function(e){if(this.uf<e){this.cf(e)}this.length=e};e.prototype.cf=function(e){var r=this.pf();var t=this.value;this.value=new r(e);if(t){this.value.set(t)}this.uf=e;return this.value};e.prototype.pf=function(){var e=Float32Array;switch(this.type){case\\"uint8\\":e=Uint8Array;break;case\\"int8\\":e=Int8Array;break;case\\"uint16\\":e=Uint16Array;break;case\\"int16\\":e=Int16Array;break;case\\"uint32\\":e=Uint32Array;break;case\\"int32\\":e=Int32Array;break;case\\"float32\\":e=Float32Array;break;case\\"float64\\":e=Float64Array;break;default:e=Float32Array}return e};e=__decorate([InnerClass(\\"SmartTypedArray\\")],e);return e}();var EnumSDFProperty;(function(e){e[e[\\"fontWidth\\"]=0]=\\"fontWidth\\";e[e[\\"fontHeight\\"]=1]=\\"fontHeight\\";e[e[\\"horiBearingX\\"]=2]=\\"horiBearingX\\";e[e[\\"horiBearingY\\"]=3]=\\"horiBearingY\\";e[e[\\"horiAdvance\\"]=4]=\\"horiAdvance\\";e[e[\\"posX\\"]=5]=\\"posX\\";e[e[\\"posY\\"]=6]=\\"posY\\";e[e[\\"iconWidth\\"]=7]=\\"iconWidth\\";e[e[\\"iconHeight\\"]=8]=\\"iconHeight\\"})(EnumSDFProperty||(EnumSDFProperty={}));var INF=1e20;var ControlChars=[[0,31],[127,159]];var ZeroWidthChars=[[8203,8207]];var f=new SmartTypedArray$2(\\"float64\\",64*64);var d=new SmartTypedArray$2(\\"float64\\",64*64);var z=new SmartTypedArray$2(\\"float64\\",64*64);var v=new SmartTypedArray$2(\\"float64\\",64*64);var ua=navigator.userAgent;var TinySDF=function(){function e(e,r,t,i,a,n,o){this.fontSize=e||24;this.buffer=t===undefined?3:t;this.MU=a||.25;this.fontFamily=n||\\"sans-serif\\";this.fontWeight=o||\\"lighter\\";this.radius=i||8;this.size=r;this.xU();var f=r[0]*r[1];this.TU=new SmartTypedArray$2(\\"float64\\",f);this.AU=new SmartTypedArray$2(\\"float64\\",f);var s=ua.indexOf(\\"Gecko/\\")>=0||ua.indexOf(\\"Windows\\")>=0;this.wU=Math.round(r[1]/2*(s?1.2:1))}e.prototype.bU=function(e){this.size=e||[];this.xU();this.mU()};e.prototype.Ce=function(e){var r=this.size,t=r[0],i=r[1];var a=t*i;var n=this.Nz;if(n){n.clearRect(0,0,t,i);n.fillText(e,this.buffer,this.wU);var o=n.getImageData(0,0,t,i);var f=new Uint8ClampedArray(a);var s=new Array(9).fill(0);s[0]=1;s[1]=1;var u=e.charCodeAt(0);if(this.RU(u)){return{bitmap:f,info:s}}var l=0;var v=0;var c=INF;var h=INF;var d=0;var _=0;for(var g=0;g<a;g++){l=Math.floor(g/t);v=g-l*t;var y=o.data[g*4+3]/255;if(y>0){if(c>l){c=l}if(h>v){h=v}if(d<l){d=l}if(_<v){_=v}}this.TU.value[g]=y===1?0:y===0?INF:Math.pow(Math.max(0,.5-y),2);this.AU.value[g]=y===1?INF:y===0?0:Math.pow(Math.max(0,y-.5),2)}var m=this.buffer;var p=this.getWidth(e,_-h);var b=d-c;var x=h;var C=-c+m;var M=p;var S=h-3;var w=c-3;var k=void 0;if(u===32){k=[6,6,0,-21,9,0,0,t,i]}else{k=[p,b,x,C,M,S,w,t,i]}edt(this.TU.value,t,i);edt(this.AU.value,t,i);for(var g=0;g<a;g++){var T=this.TU.value[g]-this.AU.value[g];var A=Math.max(0,Math.min(255,Math.round(255-255*(T/this.radius+this.MU))));f[g]=A}return{bitmap:f,info:k}}return{}};e.prototype.getWidth=function(e,r){var t;switch(e){case\\"y\\":case\\"A\\":case\\"T\\":case\\"V\\":case\\"W\\":case\\"Y\\":{t=r;break}default:t=r+2}return t};e.prototype.measureText=function(e){return this.Nz.measureText(e)};e.prototype.xU=function(){var e=this.size;if(!this.canvas){this.canvas=document.createElement(\\"canvas\\")}this.canvas.width=e[0];this.canvas.height=e[1];this.Nz=this.canvas.getContext(\\"2d\\",{C8t:true});if(this.Nz){this.Nz.font=this.fontWeight+\\" \\"+this.fontSize+\\"px \\"+this.fontFamily;this.Nz.textBaseline=\\"middle\\";this.Nz.fillStyle=\\"black\\"}};e.prototype.mU=function(){var e=this.size,r=e[0],t=e[1];var i=r*t;if(i>this.AU.uf){this.AU.ff(i);this.TU.ff(i)}var a=ua.indexOf(\\"Gecko/\\")>=0||ua.indexOf(\\"Windows\\")>=0;this.wU=Math.round(t/2*(a?1.2:1))};e.prototype.RU=function(e){var r=this.SU(e,ControlChars);var t=this.SU(e,ZeroWidthChars);return r||t};e.prototype.SU=function(e,r){for(var t=0,i=r;t<i.length;t++){var a=i[t];if(e>=a[0]&&e<=a[1]){return true}}};return e}();function expandTypeArray(e){f.ff(e);d.ff(e);z.ff(e);v.ff(e)}function edt(e,r,t){if(f.uf<t){expandTypeArray(t)}for(var i=0;i<r;i++){for(var a=0;a<t;a++){f.value[a]=e[a*r+i]}edt1d(f.value,d.value,v.value,z.value,t);for(var a=0;a<t;a++){e[a*r+i]=d.value[a]}}if(f.uf<r){expandTypeArray(t)}for(var a=0;a<t;a++){for(var i=0;i<r;i++){f.value[i]=e[a*r+i]}edt1d(f.value,d.value,v.value,z.value,r);for(var i=0;i<r;i++){e[a*r+i]=Math.sqrt(d.value[i])}}}function edt1d(e,r,t,i,a){t[0]=0;i[0]=-INF;i[1]=+INF;for(var n=1,o=0;n<a;n++){var f=(e[n]+n*n-(e[t[o]]+t[o]*t[o]))/(2*n-2*t[o]);while(f<=i[o]){o--;f=(e[n]+n*n-(e[t[o]]+t[o]*t[o]))/(2*n-2*t[o])}o++;t[o]=n;i[o]=f;i[o+1]=+INF}for(var n=0,o=0;n<a;n++){while(i[o+1]<n){o++}r[n]=(n-t[o])*(n-t[o])+e[t[o]]}}var LangConf={ch:{type:\\"ch\\",size:[32,32],fontSize:24,name:\\"中文简体\\"},en:{type:\\"en\\",size:[32,32],fontSize:24,name:\\"英文\\"},th:{type:\\"th\\",size:[32,32],fontSize:24,name:\\"泰语\\"},my:{type:\\"my\\",size:[56,56],fontSize:24,name:\\"缅甸语\\"},ja:{type:\\"ja\\",size:[32,32],fontSize:24,name:\\"日文\\"},km:{type:\\"km\\",size:[40,40],fontSize:24,name:\\"高棉语\\"},PU:{type:\\"lao\\",size:[40,40],fontSize:24,name:\\"老挝语\\"},$U:{type:\\"arabic\\",size:[40,40],fontSize:24,name:\\"阿拉伯语\\"},default:{type:\\"ch\\",size:[32,32],fontSize:24,name:\\"汉语\\"}};var Lang=function(){function e(e){var r=this.CU=e,t=r.type,i=r.size,a=r.fontSize;this.type=t;var n=this.width=i[0];var o=this.height=i[1];this.NU=new TinySDF(a,[n,o],(n-a)/2,8,.25,\\"PingFang SC\\",\\"normal\\")}e.prototype.Ce=function(e){if(this.type===LangConf.PU.type){this.width=Math.floor(this.NU.measureText(e).width/10)*10+10+LangConf.PU.fontSize/2;this.NU.bU([this.width,this.height])}else if((this.type===LangConf.my.type||this.type===LangConf.PU.type||this.type===LangConf.th.type||this.type===LangConf.$U.type||this.type===LangConf.km.type)&&e.length>1){this.width=Math.floor(this.CU.size[0]*e.length*.5);this.NU.bU([this.width,this.height])}return this.NU.Ce(e)};return e}();var LangManager=function(){function i(){this.OU={}}i.gG=function(e){var r=e.split(\\"|\\");var t=parseInt(r[0],10);return this.IU(t)};i.kU=function(e){var r=[];for(var t=0;t<e.length;t++){r.push(e.charCodeAt(t))}return i.gG(r.join(\\"|\\"))};i.LU=function(e){var r=i.kU(e);return i.EU.indexOf(r)!==-1};i.IU=function(e){var r=\\"\\";if(e>32&&e<591){r=\\"en\\"}else if(e>=4096&&e<=4255){r=\\"my\\"}else if(e>=3584&&e<=3711){r=\\"th\\"}else if(e>=6016&&e<=6143){r=\\"km\\"}else if(e>=3712&&e<=3839){r=\\"lao\\"}else if(e>=1536&&e<=1791){r=\\"arabic\\"}else{r=\\"ch\\"}return r};i.prototype.D$=function(e){if(e===void 0){e=\\"ch\\"}var r=this.OU[e];if(!r){var t=LangConf[e]?LangConf[e]:LangConf.default;r=new Lang(t);this.OU[e]=r}return r};i.EU=[LangConf.my.type,LangConf.km.type,LangConf.PU.type];return i}();var CHN=[[\\"90.398619\\",\\"47.62125\\"],[\\"90.493569\\",\\"47.512157\\"],[\\"90.491338\\",\\"47.430787\\"],[\\"90.552986\\",\\"47.391174\\"],[\\"90.522859\\",\\"47.318461\\"],[\\"90.584915\\",\\"47.224989\\"],[\\"90.782025\\",\\"47.019194\\"],[\\"90.923517\\",\\"46.97996\\"],[\\"90.986624\\",\\"46.807403\\"],[\\"91.082926\\",\\"46.722064\\"],[\\"91.051812\\",\\"46.596604\\"],[\\"91.100242\\",\\"46.564068\\"],[\\"91.102624\\",\\"46.537196\\"],[\\"90.935125\\",\\"46.300398\\"],[\\"91.032801\\",\\"46.126363\\"],[\\"91.055181\\",\\"46.011658\\"],[\\"90.741148\\",\\"45.713536\\"],[\\"90.699563\\",\\"45.544726\\"],[\\"90.700228\\",\\"45.504993\\"],[\\"90.795887\\",\\"45.449956\\"],[\\"90.832257\\",\\"45.31629\\"],[\\"90.919719\\",\\"45.26871\\"],[\\"90.920899\\",\\"45.225065\\"],[\\"91.136978\\",\\"45.244316\\"],[\\"91.253943\\",\\"45.164928\\"],[\\"91.372068\\",\\"45.142003\\"],[\\"91.45689\\",\\"45.18485\\"],[\\"91.624753\\",\\"45.098124\\"],[\\"92.062061\\",\\"45.11548\\"],[\\"92.497694\\",\\"45.030848\\"],[\\"92.887666\\",\\"45.075869\\"],[\\"93.513157\\",\\"44.997233\\"],[\\"94.22699\\",\\"44.694971\\"],[\\"94.374082\\",\\"44.542037\\"],[\\"94.620202\\",\\"44.47394\\"],[\\"94.737532\\",\\"44.366876\\"],[\\"95.002041\\",\\"44.282908\\"],[\\"95.42701\\",\\"44.324539\\"],[\\"95.440292\\",\\"44.292217\\"],[\\"95.365491\\",\\"44.054053\\"],[\\"95.549126\\",\\"44.026335\\"],[\\"95.883651\\",\\"43.431746\\"],[\\"95.911953\\",\\"43.287656\\"],[\\"96.385653\\",\\"42.919774\\"],[\\"96.41151\\",\\"42.75927\\"],[\\"97.176454\\",\\"42.824161\\"],[\\"98.198333\\",\\"42.682435\\"],[\\"99.505985\\",\\"42.597497\\"],[\\"99.964106\\",\\"42.676693\\"],[\\"100.259793\\",\\"42.666107\\"],[\\"100.320604\\",\\"42.718863\\"],[\\"100.867753\\",\\"42.700052\\"],[\\"101.814637\\",\\"42.530852\\"],[\\"102.090733\\",\\"42.250567\\"],[\\"102.451458\\",\\"42.173439\\"],[\\"102.716911\\",\\"42.181644\\"],[\\"103.426452\\",\\"41.910629\\"],[\\"103.858223\\",\\"41.830321\\"],[\\"104.537873\\",\\"41.903108\\"],[\\"104.55755\\",\\"41.881352\\"],[\\"104.554117\\",\\"41.69046\\"],[\\"104.929798\\",\\"41.682608\\"],[\\"105.010371\\",\\"41.620463\\"],[\\"105.220141\\",\\"41.778353\\"],[\\"105.732529\\",\\"41.977008\\"],[\\"106.776853\\",\\"42.319288\\"],[\\"107.167833\\",\\"42.354897\\"],[\\"107.458928\\",\\"42.487147\\"],[\\"107.937949\\",\\"42.433308\\"],[\\"108.241189\\",\\"42.489425\\"],[\\"108.84269\\",\\"42.425722\\"],[\\"109.022141\\",\\"42.487574\\"],[\\"109.290662\\",\\"42.465227\\"],[\\"109.534657\\",\\"42.500548\\"],[\\"109.723763\\",\\"42.60669\\"],[\\"110.100045\\",\\"42.671172\\"],[\\"110.420666\\",\\"42.80617\\"],[\\"111.005001\\",\\"43.354829\\"],[\\"111.446257\\",\\"43.521761\\"],[\\"111.555004\\",\\"43.519925\\"],[\\"111.780481\\",\\"43.697712\\"],[\\"111.925235\\",\\"43.719055\\"],[\\"111.936243\\",\\"43.796237\\"],[\\"111.863286\\",\\"43.902314\\"],[\\"111.643689\\",\\"44.039247\\"],[\\"111.386948\\",\\"44.360034\\"],[\\"111.610923\\",\\"44.793044\\"],[\\"111.742544\\",\\"44.988614\\"],[\\"111.9942\\",\\"45.118751\\"],[\\"112.435906\\",\\"45.103062\\"],[\\"112.61512\\",\\"44.956037\\"],[\\"112.806373\\",\\"44.882816\\"],[\\"113.624854\\",\\"44.775834\\"],[\\"113.896701\\",\\"44.9424\\"],[\\"114.104283\\",\\"44.984106\\"],[\\"114.437113\\",\\"45.233044\\"],[\\"114.543629\\",\\"45.41585\\"],[\\"114.742713\\",\\"45.46746\\"],[\\"114.977202\\",\\"45.40645\\"],[\\"115.36123\\",\\"45.421513\\"],[\\"115.688202\\",\\"45.487095\\"],[\\"116.023886\\",\\"45.712008\\"],[\\"116.163919\\",\\"45.717567\\"],[\\"116.251037\\",\\"45.785617\\"],[\\"116.213851\\",\\"45.874652\\"],[\\"116.246574\\",\\"45.98171\\"],[\\"116.56904\\",\\"46.316673\\"],[\\"116.83033\\",\\"46.413023\\"],[\\"117.353361\\",\\"46.390324\\"],[\\"117.41533\\",\\"46.528251\\"],[\\"117.39222\\",\\"46.582448\\"],[\\"117.411768\\",\\"46.610108\\"],[\\"117.618878\\",\\"46.628442\\"],[\\"117.72387\\",\\"46.549579\\"],[\\"118.312433\\",\\"46.768455\\"],[\\"118.774374\\",\\"46.71799\\"],[\\"118.828619\\",\\"46.795917\\"],[\\"118.912926\\",\\"46.804113\\"],[\\"118.941979\\",\\"46.764971\\"],[\\"119.028625\\",\\"46.769292\\"],[\\"119.119864\\",\\"46.669494\\"],[\\"119.724391\\",\\"46.623078\\"],[\\"119.791059\\",\\"46.707882\\"],[\\"119.884572\\",\\"46.701717\\"],[\\"119.896224\\",\\"46.880494\\"],[\\"119.836485\\",\\"46.899381\\"],[\\"119.742007\\",\\"47.13776\\"],[\\"119.30249\\",\\"47.404711\\"],[\\"119.315214\\",\\"47.461827\\"],[\\"119.134262\\",\\"47.517476\\"],[\\"119.10804\\",\\"47.64174\\"],[\\"118.755577\\",\\"47.747779\\"],[\\"118.55396\\",\\"47.96464\\"],[\\"118.177657\\",\\"48.02096\\"],[\\"117.82558\\",\\"47.987997\\"],[\\"117.388809\\",\\"47.612384\\"],[\\"117.082887\\",\\"47.796869\\"],[\\"116.816533\\",\\"47.867783\\"],[\\"116.452289\\",\\"47.808327\\"],[\\"116.270714\\",\\"47.845797\\"],[\\"115.938377\\",\\"47.653883\\"],[\\"115.559971\\",\\"47.900966\\"],[\\"115.500727\\",\\"48.161305\\"],[\\"115.791907\\",\\"48.279437\\"],[\\"115.776629\\",\\"48.537807\\"],[\\"116.042275\\",\\"48.826715\\"],[\\"116.024444\\",\\"48.890046\\"],[\\"116.709459\\",\\"49.880215\\"],[\\"117.07866\\",\\"49.723328\\"],[\\"117.482128\\",\\"49.648667\\"],[\\"117.801998\\",\\"49.554185\\"],[\\"117.858689\\",\\"49.620567\\"],[\\"118.068073\\",\\"49.643304\\"],[\\"118.210831\\",\\"49.759243\\"],[\\"118.358674\\",\\"49.80286\\"],[\\"118.37378\\",\\"49.853853\\"],[\\"118.468623\\",\\"49.857768\\"],[\\"118.559926\\",\\"49.957101\\"],[\\"119.082034\\",\\"50.01451\\"],[\\"119.311051\\",\\"50.169532\\"],[\\"119.328389\\",\\"50.327724\\"],[\\"119.175332\\",\\"50.320094\\"],[\\"119.103534\\",\\"50.373674\\"],[\\"119.103642\\",\\"50.409488\\"],[\\"119.224019\\",\\"50.469114\\"],[\\"119.262214\\",\\"50.625767\\"],[\\"119.470096\\",\\"50.763554\\"],[\\"119.480245\\",\\"50.910299\\"],[\\"119.734497\\",\\"51.106944\\"],[\\"119.73542\\",\\"51.228925\\"],[\\"119.789064\\",\\"51.243368\\"],[\\"119.787948\\",\\"51.298691\\"],[\\"119.896417\\",\\"51.365189\\"],[\\"119.889615\\",\\"51.410731\\"],[\\"119.950318\\",\\"51.426267\\"],[\\"120.067241\\",\\"51.699773\\"],[\\"120.632029\\",\\"51.963004\\"],[\\"120.755196\\",\\"52.16206\\"],[\\"120.733974\\",\\"52.23734\\"],[\\"120.60276\\",\\"52.318868\\"],[\\"120.688398\\",\\"52.529211\\"],[\\"120.459208\\",\\"52.615218\\"],[\\"120.046556\\",\\"52.554881\\"],[\\"120.004778\\",\\"52.785297\\"],[\\"120.275145\\",\\"52.889292\\"],[\\"120.877526\\",\\"53.323248\\"],[\\"121.231921\\",\\"53.310391\\"],[\\"122.338707\\",\\"53.534212\\"],[\\"122.443142\\",\\"53.474191\\"],[\\"122.84101\\",\\"53.486577\\"],[\\"123.278553\\",\\"53.592823\\"],[\\"123.480492\\",\\"53.533829\\"],[\\"123.518364\\",\\"53.587614\\"],[\\"123.901491\\",\\"53.509565\\"],[\\"124.129157\\",\\"53.379309\\"],[\\"124.260864\\",\\"53.404185\\"],[\\"124.447374\\",\\"53.252351\\"],[\\"124.696798\\",\\"53.233398\\"],[\\"124.854212\\",\\"53.143501\\"],[\\"124.877429\\",\\"53.19179\\"],[\\"125.14374\\",\\"53.233437\\"],[\\"125.500989\\",\\"53.129213\\"],[\\"125.53472\\",\\"53.084642\\"],[\\"125.631731\\",\\"53.108131\\"],[\\"125.776978\\",\\"53.000452\\"],[\\"125.732839\\",\\"52.906456\\"],[\\"125.842016\\",\\"52.927481\\"],[\\"125.973551\\",\\"52.795444\\"],[\\"126.049747\\",\\"52.829373\\"],[\\"126.137295\\",\\"52.788424\\"],[\\"126.136093\\",\\"52.7501\\"],[\\"126.082878\\",\\"52.727183\\"],[\\"126.094744\\",\\"52.66376\\"],[\\"126.01078\\",\\"52.632295\\"],[\\"126.225078\\",\\"52.557751\\"],[\\"126.227546\\",\\"52.502887\\"],[\\"126.28664\\",\\"52.498733\\"],[\\"126.378071\\",\\"52.405299\\"],[\\"126.365626\\",\\"52.334723\\"],[\\"126.460233\\",\\"52.313556\\"],[\\"126.457937\\",\\"52.278438\\"],[\\"126.370797\\",\\"52.21752\\"],[\\"126.587327\\",\\"52.146539\\"],[\\"126.544647\\",\\"52.022831\\"],[\\"126.483493\\",\\"52.004144\\"],[\\"126.489866\\",\\"51.963387\\"],[\\"126.757379\\",\\"51.72942\\"],[\\"126.769931\\",\\"51.638237\\"],[\\"126.737959\\",\\"51.604012\\"],[\\"126.870396\\",\\"51.541384\\"],[\\"126.8313\\",\\"51.449554\\"],[\\"126.939726\\",\\"51.411373\\"],[\\"126.952021\\",\\"51.35238\\"],[\\"127.007918\\",\\"51.339647\\"],[\\"126.930671\\",\\"51.194554\\"],[\\"126.950047\\",\\"51.077214\\"],[\\"127.328668\\",\\"50.761993\\"],[\\"127.324612\\",\\"50.674039\\"],[\\"127.399564\\",\\"50.585975\\"],[\\"127.336199\\",\\"50.480736\\"],[\\"127.39435\\",\\"50.441709\\"],[\\"127.374866\\",\\"50.346296\\"],[\\"127.622938\\",\\"50.242265\\"],[\\"127.624762\\",\\"50.159938\\"],[\\"127.524126\\",\\"50.053819\\"],[\\"127.569466\\",\\"49.832087\\"],[\\"127.686474\\",\\"49.798414\\"],[\\"127.716987\\",\\"49.69577\\"],[\\"127.838395\\",\\"49.617717\\"],[\\"128.185065\\",\\"49.56898\\"],[\\"128.533065\\",\\"49.633229\\"],[\\"128.791094\\",\\"49.618148\\"],[\\"128.84167\\",\\"49.562161\\"],[\\"128.811865\\",\\"49.506248\\"],[\\"129.022107\\",\\"49.485245\\"],[\\"129.11165\\",\\"49.389985\\"],[\\"129.230032\\",\\"49.429552\\"],[\\"129.343135\\",\\"49.392234\\"],[\\"129.383497\\",\\"49.461849\\"],[\\"129.526126\\",\\"49.451932\\"],[\\"129.593332\\",\\"49.316758\\"],[\\"129.745059\\",\\"49.313625\\"],[\\"129.972146\\",\\"49.057136\\"],[\\"130.243692\\",\\"48.89923\\"],[\\"130.444579\\",\\"48.939218\\"],[\\"130.526934\\",\\"48.889044\\"],[\\"130.693552\\",\\"48.907086\\"],[\\"130.705612\\",\\"48.869994\\"],[\\"130.580449\\",\\"48.630526\\"],[\\"130.630317\\",\\"48.609845\\"],[\\"130.648105\\",\\"48.52472\\"],[\\"130.790884\\",\\"48.525345\\"],[\\"130.778868\\",\\"48.413864\\"],[\\"130.875106\\",\\"48.300724\\"],[\\"130.708423\\",\\"48.108792\\"],[\\"130.914073\\",\\"47.945556\\"],[\\"131.01546\\",\\"47.736076\\"],[\\"131.552374\\",\\"47.750448\\"],[\\"131.621768\\",\\"47.692216\\"],[\\"131.711934\\",\\"47.740348\\"],[\\"131.958075\\",\\"47.703033\\"],[\\"131.995368\\",\\"47.741041\\"],[\\"132.235458\\",\\"47.739381\\"],[\\"132.340472\\",\\"47.796162\\"],[\\"132.546873\\",\\"47.750881\\"],[\\"132.655685\\",\\"47.89209\\"],[\\"132.654505\\",\\"47.979308\\"],[\\"132.811511\\",\\"47.967327\\"],[\\"133.097413\\",\\"48.158185\\"],[\\"133.473394\\",\\"48.128346\\"],[\\"133.728504\\",\\"48.281365\\"],[\\"134.199908\\",\\"48.411499\\"],[\\"134.519091\\",\\"48.448618\\"],[\\"134.797053\\",\\"48.402511\\"],[\\"134.903462\\",\\"48.476549\\"],[\\"135.111473\\",\\"48.465979\\"],[\\"135.087461\\",\\"48.366044\\"],[\\"134.70854\\",\\"48.235879\\"],[\\"134.705815\\",\\"48.142967\\"],[\\"134.587133\\",\\"47.991745\\"],[\\"134.802439\\",\\"47.732613\\"],[\\"134.805079\\",\\"47.701502\\"],[\\"134.584837\\",\\"47.454022\\"],[\\"134.327302\\",\\"47.405829\\"],[\\"134.203448\\",\\"47.309543\\"],[\\"134.189801\\",\\"47.25835\\"],[\\"134.258273\\",\\"47.190339\\"],[\\"134.25029\\",\\"47.096963\\"],[\\"134.160018\\",\\"47.066453\\"],[\\"134.091868\\",\\"46.968583\\"],[\\"134.042215\\",\\"46.633997\\"],[\\"133.892806\\",\\"46.477753\\"],[\\"133.978872\\",\\"46.404235\\"],[\\"133.938468\\",\\"46.35728\\"],[\\"133.943124\\",\\"46.251663\\"],[\\"133.734856\\",\\"46.143924\\"],[\\"133.77584\\",\\"46.068467\\"],[\\"133.698828\\",\\"45.924364\\"],[\\"133.509421\\",\\"45.823745\\"],[\\"133.533154\\",\\"45.779212\\"],[\\"133.488886\\",\\"45.719859\\"],[\\"133.513906\\",\\"45.69461\\"],[\\"133.496869\\",\\"45.599732\\"],[\\"133.229721\\",\\"45.489276\\"],[\\"133.168674\\",\\"45.414886\\"],[\\"133.124621\\",\\"45.258199\\"],[\\"133.158975\\",\\"45.105773\\"],[\\"132.946351\\",\\"44.989767\\"],[\\"131.996377\\",\\"45.226214\\"],[\\"131.893723\\",\\"45.301592\\"],[\\"131.80903\\",\\"45.186922\\"],[\\"131.72307\\",\\"45.208468\\"],[\\"131.688416\\",\\"45.166214\\"],[\\"131.716461\\",\\"45.107939\\"],[\\"131.507506\\",\\"44.942491\\"],[\\"131.131804\\",\\"44.90387\\"],[\\"131.021662\\",\\"44.839439\\"],[\\"131.137726\\",\\"44.723122\\"],[\\"131.338398\\",\\"44.056058\\"],[\\"131.273661\\",\\"43.974086\\"],[\\"131.248341\\",\\"43.566337\\"],[\\"131.344342\\",\\"43.514183\\"],[\\"131.346252\\",\\"43.391702\\"],[\\"131.236002\\",\\"43.22857\\"],[\\"131.242955\\",\\"43.131057\\"],[\\"131.13749\\",\\"43.018486\\"],[\\"131.168904\\",\\"42.923466\\"],[\\"131.065779\\",\\"42.901952\\"],[\\"131.05005\\",\\"42.834641\\"],[\\"130.673962\\",\\"42.819219\\"],[\\"130.46123\\",\\"42.731347\\"],[\\"130.617421\\",\\"42.685874\\"],[\\"130.650616\\",\\"42.595365\\"],[\\"130.604267\\",\\"42.509264\\"],[\\"130.661752\\",\\"42.412289\\"],[\\"130.553477\\",\\"42.421191\\"],[\\"130.507536\\",\\"42.571366\\"],[\\"130.42958\\",\\"42.523293\\"],[\\"130.416105\\",\\"42.590452\\"],[\\"130.235238\\",\\"42.692151\\"],[\\"130.237405\\",\\"42.873951\\"],[\\"130.125611\\",\\"42.876169\\"],[\\"130.075765\\",\\"42.911319\\"],[\\"130.092008\\",\\"42.956423\\"],[\\"129.933178\\",\\"42.975108\\"],[\\"129.878311\\",\\"42.92378\\"],[\\"129.795163\\",\\"42.719399\\"],[\\"129.815032\\",\\"42.601778\\"],[\\"129.735103\\",\\"42.411401\\"],[\\"129.607751\\",\\"42.418118\\"],[\\"129.55415\\",\\"42.330996\\"],[\\"129.383025\\",\\"42.403749\\"],[\\"129.268527\\",\\"42.323223\\"],[\\"129.222093\\",\\"42.257635\\"],[\\"129.2434\\",\\"42.19201\\"],[\\"128.992774\\",\\"42.075243\\"],[\\"128.959644\\",\\"41.997184\\"],[\\"128.121765\\",\\"41.974471\\"],[\\"128.183949\\",\\"41.746614\\"],[\\"128.336234\\",\\"41.608881\\"],[\\"128.268621\\",\\"41.434008\\"],[\\"128.127944\\",\\"41.337429\\"],[\\"128.00482\\",\\"41.417516\\"],[\\"127.65285\\",\\"41.377517\\"],[\\"127.537794\\",\\"41.447986\\"],[\\"127.248116\\",\\"41.454805\\"],[\\"127.234962\\",\\"41.492217\\"],[\\"127.08566\\",\\"41.544545\\"],[\\"127.128081\\",\\"41.592273\\"],[\\"127.012339\\",\\"41.679643\\"],[\\"127.035706\\",\\"41.702541\\"],[\\"126.914964\\",\\"41.778689\\"],[\\"126.809177\\",\\"41.669562\\"],[\\"126.74607\\",\\"41.691325\\"],[\\"126.612003\\",\\"41.629975\\"],[\\"126.529799\\",\\"41.412013\\"],[\\"126.562243\\",\\"41.368516\\"],[\\"126.557908\\",\\"41.33825\\"],[\\"126.45328\\",\\"41.325763\\"],[\\"126.3043\\",\\"41.139979\\"],[\\"126.148946\\",\\"41.070584\\"],[\\"126.132917\\",\\"40.990783\\"],[\\"126.041744\\",\\"40.924117\\"],[\\"126.041787\\",\\"40.876401\\"],[\\"125.721896\\",\\"40.840697\\"],[\\"125.681319\\",\\"40.80754\\"],[\\"125.712733\\",\\"40.774611\\"],[\\"125.686641\\",\\"40.761853\\"],[\\"125.582743\\",\\"40.75319\\"],[\\"125.423162\\",\\"40.624246\\"],[\\"125.310595\\",\\"40.636606\\"],[\\"125.022783\\",\\"40.521123\\"],[\\"125.06057\\",\\"40.46396\\"],[\\"124.907556\\",\\"40.445935\\"],[\\"124.374311\\",\\"40.078794\\"],[\\"124.388452\\",\\"39.905638\\"],[\\"123.741782\\",\\"39.10294\\"],[\\"123.282201\\",\\"38.058466\\"],[\\"124.24299\\",\\"31.368588\\"],[\\"124.714351\\",\\"29.508006\\"],[\\"125.072136\\",\\"25.859069\\"],[\\"124.935837\\",\\"25.676612\\"],[\\"123.836839\\",\\"25.5127\\"],[\\"122.751321\\",\\"24.515956\\"],[\\"121.947788\\",\\"22.070621\\"],[\\"121.867355\\",\\"21.383021\\"],[\\"119.827087\\",\\"18.177352\\"],[\\"119.026527\\",\\"16.873489\\"],[\\"119.11665\\",\\"15.951676\\"],[\\"119.101406\\",\\"14.063252\\"],[\\"119.100623\\",\\"12.209516\\"],[\\"119.07742\\",\\"11.23357\\"],[\\"116.011301\\",\\"7.678721\\"],[\\"114.941852\\",\\"6.182877\\"],[\\"114.229887\\",\\"5.47862\\"],[\\"113.86269\\",\\"4.692236\\"],[\\"112.795642\\",\\"3.695169\\"],[\\"111.953841\\",\\"3.231846\\"],[\\"109.894631\\",\\"3.714037\\"],[\\"108.659956\\",\\"4.748032\\"],[\\"107.925439\\",\\"5.91737\\"],[\\"107.96348\\",\\"6.895899\\"],[\\"108.555028\\",\\"9.28242\\"],[\\"110.128544\\",\\"11.338543\\"],[\\"109.983314\\",\\"12.44102\\"],[\\"109.806102\\",\\"13.535124\\"],[\\"109.636428\\",\\"14.636855\\"],[\\"109.78629\\",\\"15.402577\\"],[\\"109.449813\\",\\"15.723154\\"],[\\"108.117871\\",\\"17.258818\\"],[\\"107.310076\\",\\"18.842045\\"],[\\"107.374728\\",\\"19.467179\\"],[\\"108.051095\\",\\"20.114414\\"],[\\"108.328478\\",\\"21.187373\\"],[\\"108.278139\\",\\"21.403412\\"],[\\"108.107378\\",\\"21.47839\\"],[\\"107.943356\\",\\"21.509097\\"],[\\"107.849844\\",\\"21.619412\\"],[\\"107.547355\\",\\"21.55724\\"],[\\"107.470751\\",\\"21.571209\\"],[\\"107.451932\\",\\"21.615722\\"],[\\"107.357798\\",\\"21.570152\\"],[\\"107.289755\\",\\"21.702532\\"],[\\"107.207551\\",\\"21.682454\\"],[\\"106.998789\\",\\"21.79714\\"],[\\"107.015655\\",\\"21.907972\\"],[\\"106.951239\\",\\"21.893876\\"],[\\"106.768184\\",\\"21.978429\\"],[\\"106.703854\\",\\"21.935422\\"],[\\"106.674027\\",\\"21.941175\\"],[\\"106.664565\\",\\"22.266461\\"],[\\"106.643493\\",\\"22.30484\\"],[\\"106.538715\\",\\"22.328641\\"],[\\"106.53142\\",\\"22.460275\\"],[\\"106.592939\\",\\"22.622033\\"],[\\"106.708553\\",\\"22.615477\\"],[\\"106.793547\\",\\"22.794758\\"],[\\"106.548972\\",\\"22.899047\\"],[\\"106.304634\\",\\"22.830954\\"],[\\"106.190543\\",\\"22.951201\\"],[\\"106.088791\\",\\"22.966118\\"],[\\"105.867991\\",\\"22.889816\\"],[\\"105.712488\\",\\"23.033058\\"],[\\"105.550311\\",\\"23.045755\\"],[\\"105.530806\\",\\"23.163759\\"],[\\"105.330691\\",\\"23.346393\\"],[\\"105.249667\\",\\"23.237422\\"],[\\"105.089657\\",\\"23.231409\\"],[\\"104.951169\\",\\"23.149476\\"],[\\"104.843495\\",\\"23.101267\\"],[\\"104.893084\\",\\"22.94393\\"],[\\"104.747257\\",\\"22.79551\\"],[\\"104.567764\\",\\"22.813411\\"],[\\"104.371855\\",\\"22.65974\\"],[\\"104.249053\\",\\"22.720536\\"],[\\"104.237015\\",\\"22.806132\\"],[\\"104.137495\\",\\"22.783462\\"],[\\"104.078336\\",\\"22.740585\\"],[\\"104.017096\\",\\"22.520843\\"],[\\"103.962035\\",\\"22.492019\\"],[\\"103.666692\\",\\"22.741534\\"],[\\"103.525093\\",\\"22.580551\\"],[\\"103.458703\\",\\"22.648987\\"],[\\"103.394201\\",\\"22.751092\\"],[\\"103.341286\\",\\"22.767397\\"],[\\"103.306804\\",\\"22.661878\\"],[\\"103.215652\\",\\"22.621855\\"],[\\"103.205309\\",\\"22.536362\\"],[\\"103.107505\\",\\"22.486567\\"],[\\"103.076606\\",\\"22.416444\\"],[\\"102.91784\\",\\"22.456309\\"],[\\"102.840786\\",\\"22.583305\\"],[\\"102.610223\\",\\"22.696625\\"],[\\"102.558017\\",\\"22.673838\\"],[\\"102.493515\\",\\"22.738071\\"],[\\"102.424293\\",\\"22.676273\\"],[\\"102.446694\\",\\"22.621241\\"],[\\"102.327948\\",\\"22.511268\\"],[\\"102.278531\\",\\"22.386786\\"],[\\"102.142661\\",\\"22.36867\\"],[\\"102.03475\\",\\"22.427651\\"],[\\"101.942096\\",\\"22.415036\\"],[\\"101.8765\\",\\"22.355136\\"],[\\"101.764791\\",\\"22.472926\\"],[\\"101.700847\\",\\"22.453176\\"],[\\"101.694624\\",\\"22.349917\\"],[\\"101.579332\\",\\"22.223979\\"],[\\"101.631925\\",\\"21.988099\\"],[\\"101.718335\\",\\"21.962549\\"],[\\"101.79863\\",\\"21.848016\\"],[\\"101.778824\\",\\"21.73654\\"],[\\"101.856952\\",\\"21.62392\\"],[\\"101.847124\\",\\"21.595911\\"],[\\"101.773932\\",\\"21.558438\\"],[\\"101.760328\\",\\"21.349162\\"],[\\"101.862724\\",\\"21.239522\\"],[\\"101.764727\\",\\"21.115389\\"],[\\"101.663511\\",\\"21.164623\\"],[\\"101.587808\\",\\"21.146813\\"],[\\"101.574161\\",\\"21.209359\\"],[\\"101.53264\\",\\"21.221881\\"],[\\"101.293538\\",\\"21.149214\\"],[\\"101.203866\\",\\"21.206559\\"],[\\"101.216612\\",\\"21.289294\\"],[\\"101.114173\\",\\"21.403592\\"],[\\"101.183052\\",\\"21.497378\\"],[\\"101.111941\\",\\"21.560533\\"],[\\"101.095719\\",\\"21.734009\\"],[\\"100.901892\\",\\"21.659343\\"],[\\"100.747526\\",\\"21.494902\\"],[\\"100.586185\\",\\"21.423588\\"],[\\"100.468576\\",\\"21.433695\\"],[\\"100.414267\\",\\"21.504705\\"],[\\"100.248806\\",\\"21.434534\\"],[\\"100.115855\\",\\"21.481604\\"],[\\"100.078626\\",\\"21.591362\\"],[\\"100.11579\\",\\"21.654357\\"],[\\"100.010068\\",\\"21.666462\\"],[\\"99.916813\\",\\"21.811046\\"],[\\"99.968591\\",\\"21.972539\\"],[\\"99.950867\\",\\"22.023392\\"],[\\"99.699748\\",\\"22.008512\\"],[\\"99.585378\\",\\"22.083453\\"],[\\"99.19384\\",\\"22.094388\\"],[\\"99.129961\\",\\"22.147006\\"],[\\"99.24403\\",\\"22.347694\\"],[\\"99.226069\\",\\"22.407775\\"],[\\"99.348979\\",\\"22.505302\\"],[\\"99.289627\\",\\"22.751963\\"],[\\"99.429595\\",\\"22.858203\\"],[\\"99.422858\\",\\"22.95454\\"],[\\"99.521735\\",\\"22.955884\\"],[\\"99.488432\\",\\"23.051046\\"],[\\"99.336512\\",\\"23.101188\\"],[\\"99.258964\\",\\"23.048934\\"],[\\"99.10449\\",\\"23.057463\\"],[\\"98.99924\\",\\"23.151389\\"],[\\"98.858693\\",\\"23.167152\\"],[\\"98.89811\\",\\"23.292382\\"],[\\"98.844295\\",\\"23.323341\\"],[\\"98.878284\\",\\"23.4184\\"],[\\"98.821571\\",\\"23.466061\\"],[\\"98.773527\\",\\"23.530055\\"],[\\"98.849638\\",\\"23.617887\\"],[\\"98.774085\\",\\"23.751823\\"],[\\"98.656368\\",\\"23.775684\\"],[\\"98.63961\\",\\"23.801661\\"],[\\"98.649909\\",\\"23.978332\\"],[\\"98.828974\\",\\"24.077833\\"],[\\"98.83893\\",\\"24.109859\\"],[\\"98.594849\\",\\"24.051324\\"],[\\"98.534853\\",\\"24.098401\\"],[\\"98.118939\\",\\"24.06406\\"],[\\"97.652578\\",\\"23.812007\\"],[\\"97.500916\\",\\"23.916402\\"],[\\"97.507889\\",\\"23.946076\\"],[\\"97.703905\\",\\"24.12772\\"],[\\"97.7321\\",\\"24.242073\\"],[\\"97.646012\\",\\"24.307132\\"],[\\"97.678134\\",\\"24.384313\\"],[\\"97.653759\\",\\"24.420913\\"],[\\"97.528617\\",\\"24.403523\\"],[\\"97.504349\\",\\"24.421636\\"],[\\"97.520614\\",\\"24.750904\\"],[\\"97.686181\\",\\"24.867223\\"],[\\"97.726886\\",\\"24.872596\\"],[\\"97.701159\\",\\"24.901891\\"],[\\"97.691374\\",\\"25.085579\\"],[\\"97.816257\\",\\"25.289948\\"],[\\"97.844152\\",\\"25.297669\\"],[\\"97.93803\\",\\"25.249897\\"],[\\"98.122308\\",\\"25.413237\\"],[\\"98.152177\\",\\"25.643055\\"],[\\"98.313818\\",\\"25.589382\\"],[\\"98.380058\\",\\"25.615679\\"],[\\"98.510756\\",\\"25.863626\\"],[\\"98.635018\\",\\"25.83211\\"],[\\"98.668857\\",\\"25.860517\\"],[\\"98.546226\\",\\"26.121072\\"],[\\"98.648708\\",\\"26.171346\\"],[\\"98.686366\\",\\"26.138757\\"],[\\"98.648\\",\\"26.279486\\"],[\\"98.751404\\",\\"26.620222\\"],[\\"98.701365\\",\\"26.849746\\"],[\\"98.733852\\",\\"27.033154\\"],[\\"98.685272\\",\\"27.065508\\"],[\\"98.663149\\",\\"27.194049\\"],[\\"98.708661\\",\\"27.325701\\"],[\\"98.657935\\",\\"27.422786\\"],[\\"98.67244\\",\\"27.532116\\"],[\\"98.574979\\",\\"27.540164\\"],[\\"98.537407\\",\\"27.61841\\"],[\\"98.464022\\",\\"27.631357\\"],[\\"98.417695\\",\\"27.512725\\"],[\\"98.29766\\",\\"27.498051\\"],[\\"98.144388\\",\\"27.832814\\"],[\\"98.155954\\",\\"27.920407\\"],[\\"98.109477\\",\\"27.953809\\"],[\\"98.111\\",\\"28.123353\\"],[\\"97.991245\\",\\"28.182664\\"],[\\"97.984571\\",\\"28.253152\\"],[\\"97.904449\\",\\"28.328541\\"],[\\"97.775702\\",\\"28.306704\\"],[\\"97.650433\\",\\"28.498038\\"],[\\"97.537651\\",\\"28.471615\\"],[\\"97.537544\\",\\"28.300942\\"],[\\"97.374809\\",\\"28.215134\\"],[\\"97.340262\\",\\"28.085365\\"],[\\"97.441328\\",\\"28.020526\\"],[\\"97.41045\\",\\"27.866111\\"],[\\"97.271254\\",\\"27.865238\\"],[\\"97.104206\\",\\"27.710621\\"],[\\"97.074959\\",\\"27.716851\\"],[\\"96.959302\\",\\"27.833554\\"],[\\"96.799979\\",\\"27.862962\\"],[\\"96.485238\\",\\"28.041967\\"],[\\"96.435456\\",\\"28.122218\\"],[\\"96.282742\\",\\"28.11548\\"],[\\"96.254032\\",\\"28.195619\\"],[\\"96.011753\\",\\"28.160892\\"],[\\"95.866721\\",\\"28.266533\\"],[\\"95.747824\\",\\"28.246895\\"],[\\"95.417182\\",\\"28.118906\\"],[\\"95.304315\\",\\"27.916842\\"],[\\"94.898787\\",\\"27.716889\\"],[\\"94.531603\\",\\"27.567615\\"],[\\"94.290032\\",\\"27.552854\\"],[\\"93.888688\\",\\"27.17204\\"],[\\"93.845987\\",\\"27.008916\\"],[\\"93.571308\\",\\"26.909059\\"],[\\"92.944937\\",\\"26.862668\\"],[\\"92.647405\\",\\"26.922873\\"],[\\"92.093539\\",\\"26.830122\\"],[\\"92.094247\\",\\"26.952103\\"],[\\"91.998589\\",\\"27.089524\\"],[\\"92.083004\\",\\"27.299047\\"],[\\"92.034273\\",\\"27.387239\\"],[\\"91.995907\\",\\"27.444668\\"],[\\"91.729424\\",\\"27.433927\\"],[\\"91.566002\\",\\"27.518015\\"],[\\"91.534996\\",\\"27.644815\\"],[\\"91.602566\\",\\"27.75719\\"],[\\"91.514804\\",\\"27.82382\\"],[\\"91.562676\\",\\"27.867913\\"],[\\"91.468799\\",\\"27.914302\\"],[\\"91.441784\\",\\"27.98019\\"],[\\"91.319818\\",\\"28.026891\\"],[\\"91.09123\\",\\"27.815659\\"],[\\"90.700164\\",\\"28.042914\\"],[\\"90.592875\\",\\"27.992071\\"],[\\"90.457885\\",\\"28.016188\\"],[\\"90.284765\\",\\"28.126494\\"],[\\"90.15898\\",\\"28.149257\\"],[\\"90.026414\\",\\"28.108761\\"],[\\"89.808083\\",\\"28.209972\\"],[\\"89.741178\\",\\"28.14466\\"],[\\"89.620585\\",\\"28.133666\\"],[\\"89.394701\\",\\"27.853894\\"],[\\"89.261577\\",\\"27.776101\\"],[\\"89.129934\\",\\"27.494282\\"],[\\"89.208705\\",\\"27.359876\\"],[\\"89.003119\\",\\"27.183627\\"],[\\"88.914757\\",\\"27.261172\\"],[\\"88.754318\\",\\"27.459692\\"],[\\"88.742559\\",\\"27.575756\\"],[\\"88.824484\\",\\"27.683585\\"],[\\"88.858366\\",\\"27.84585\\"],[\\"88.817167\\",\\"27.989323\\"],[\\"88.749833\\",\\"28.04227\\"],[\\"88.643789\\",\\"28.079175\\"],[\\"88.414536\\",\\"27.948938\\"],[\\"88.164768\\",\\"27.927649\\"],[\\"88.119621\\",\\"27.836742\\"],[\\"87.844298\\",\\"27.914245\\"],[\\"87.731731\\",\\"27.773994\\"],[\\"87.596998\\",\\"27.78341\\"],[\\"87.555606\\",\\"27.832169\\"],[\\"87.226918\\",\\"27.783961\\"],[\\"87.114007\\",\\"27.809055\\"],[\\"87.017899\\",\\"27.921014\\"],[\\"86.741974\\",\\"28.007834\\"],[\\"86.699681\\",\\"28.06541\\"],[\\"86.621253\\",\\"28.036683\\"],[\\"86.583402\\",\\"28.057988\\"],[\\"86.53626\\",\\"27.935498\\"],[\\"86.410089\\",\\"27.875861\\"],[\\"86.21079\\",\\"27.953771\\"],[\\"86.168518\\",\\"28.117581\\"],[\\"86.115561\\",\\"28.075237\\"],[\\"86.149271\\",\\"27.905693\\"],[\\"85.994046\\",\\"27.879218\\"],[\\"85.944521\\",\\"27.932939\\"],[\\"85.832512\\",\\"28.151055\\"],[\\"85.730202\\",\\"28.210313\\"],[\\"85.701256\\",\\"28.320003\\"],[\\"85.608344\\",\\"28.222546\\"],[\\"85.501399\\",\\"28.296408\\"],[\\"85.379283\\",\\"28.245137\\"],[\\"85.108273\\",\\"28.308745\\"],[\\"85.080035\\",\\"28.467918\\"],[\\"85.159664\\",\\"28.55567\\"],[\\"85.153999\\",\\"28.618263\\"],[\\"85.06716\\",\\"28.641711\\"],[\\"84.995663\\",\\"28.560816\\"],[\\"84.851232\\",\\"28.539159\\"],[\\"84.68178\\",\\"28.609315\\"],[\\"84.624424\\",\\"28.696084\\"],[\\"84.465938\\",\\"28.711423\\"],[\\"84.389849\\",\\"28.828396\\"],[\\"84.202845\\",\\"28.880867\\"],[\\"84.21602\\",\\"29.009754\\"],[\\"84.163899\\",\\"29.035197\\"],[\\"84.138279\\",\\"29.170731\\"],[\\"84.156046\\",\\"29.210987\\"],[\\"84.110534\\",\\"29.218441\\"],[\\"84.085858\\",\\"29.266484\\"],[\\"83.922973\\",\\"29.294016\\"],[\\"83.658078\\",\\"29.134976\\"],[\\"83.571818\\",\\"29.151918\\"],[\\"83.232014\\",\\"29.552591\\"],[\\"83.070545\\",\\"29.578981\\"],[\\"82.920063\\",\\"29.684809\\"],[\\"82.816744\\",\\"29.661877\\"],[\\"82.675381\\",\\"29.739992\\"],[\\"82.684436\\",\\"29.800693\\"],[\\"82.605515\\",\\"29.811846\\"],[\\"82.541184\\",\\"29.930689\\"],[\\"82.159367\\",\\"30.045582\\"],[\\"82.174859\\",\\"30.141657\\"],[\\"82.084479\\",\\"30.216893\\"],[\\"82.077913\\",\\"30.310431\\"],[\\"81.993091\\",\\"30.291904\\"],[\\"81.637645\\",\\"30.413095\\"],[\\"81.562006\\",\\"30.34101\\"],[\\"81.44238\\",\\"30.380465\\"],[\\"81.419613\\",\\"30.185719\\"],[\\"81.306617\\",\\"30.138261\\"],[\\"81.279452\\",\\"29.994378\\"],[\\"81.11603\\",\\"30.010804\\"],[\\"80.995588\\",\\"30.23662\\"],[\\"80.302677\\",\\"30.539587\\"],[\\"80.0878\\",\\"30.543727\\"],[\\"79.94236\\",\\"30.672449\\"],[\\"79.868267\\",\\"30.834188\\"],[\\"79.825373\\",\\"30.839126\\"],[\\"79.673774\\",\\"30.945519\\"],[\\"79.593372\\",\\"30.894565\\"],[\\"79.4033\\",\\"31.036535\\"],[\\"79.346716\\",\\"31.001927\\"],[\\"79.336288\\",\\"30.933391\\"],[\\"79.224193\\",\\"30.920174\\"],[\\"79.170227\\",\\"30.981969\\"],[\\"79.092743\\",\\"30.963258\\"],[\\"78.986249\\",\\"31.027673\\"],[\\"78.96668\\",\\"31.157988\\"],[\\"78.856924\\",\\"31.281503\\"],[\\"78.783796\\",\\"31.274131\\"],[\\"78.728542\\",\\"31.344273\\"],[\\"78.757918\\",\\"31.433515\\"],[\\"78.697536\\",\\"31.51499\\"],[\\"78.804524\\",\\"31.611708\\"],[\\"78.62458\\",\\"31.82264\\"],[\\"78.722126\\",\\"31.927562\\"],[\\"78.578596\\",\\"31.999524\\"],[\\"78.497701\\",\\"32.11424\\"],[\\"78.432641\\",\\"32.118838\\"],[\\"78.402622\\",\\"32.220389\\"],[\\"78.4762\\",\\"32.31131\\"],[\\"78.36638\\",\\"32.528271\\"],[\\"78.381336\\",\\"32.554898\\"],[\\"78.75176\\",\\"32.731065\\"],[\\"78.809223\\",\\"32.496551\\"],[\\"78.976872\\",\\"32.364195\\"],[\\"79.005883\\",\\"32.376536\\"],[\\"79.080126\\",\\"32.394077\\"],[\\"79.114029\\",\\"32.491665\\"],[\\"79.279168\\",\\"32.61355\\"],[\\"79.272795\\",\\"32.713951\\"],[\\"79.195912\\",\\"32.779409\\"],[\\"79.222884\\",\\"32.93039\\"],[\\"79.135616\\",\\"33.001861\\"],[\\"79.1289\\",\\"33.16414\\"],[\\"78.818901\\",\\"33.407102\\"],[\\"78.715496\\",\\"33.540948\\"],[\\"78.723736\\",\\"33.604683\\"],[\\"78.656015\\",\\"33.65053\\"],[\\"78.749506\\",\\"33.746395\\"],[\\"78.715582\\",\\"33.972994\\"],[\\"78.631468\\",\\"34.014908\\"],[\\"78.635867\\",\\"34.100789\\"],[\\"78.894839\\",\\"34.171104\\"],[\\"78.97243\\",\\"34.341399\\"],[\\"78.867137\\",\\"34.336615\\"],[\\"78.698266\\",\\"34.491737\\"],[\\"78.566988\\",\\"34.478543\\"],[\\"78.527312\\",\\"34.539705\\"],[\\"78.430667\\",\\"34.514354\\"],[\\"78.403587\\",\\"34.570207\\"],[\\"78.247139\\",\\"34.615374\\"],[\\"78.238835\\",\\"34.685346\\"],[\\"78.179204\\",\\"34.722162\\"],[\\"78.172767\\",\\"34.964414\\"],[\\"78.056982\\",\\"35.102584\\"],[\\"77.985699\\",\\"35.231108\\"],[\\"77.986279\\",\\"35.376996\\"],[\\"78.060694\\",\\"35.455461\\"],[\\"77.904546\\",\\"35.435236\\"],[\\"77.815948\\",\\"35.484733\\"],[\\"77.688854\\",\\"35.41908\\"],[\\"77.389219\\",\\"35.439747\\"],[\\"77.300084\\",\\"35.509365\\"],[\\"77.189727\\",\\"35.490691\\"],[\\"76.844516\\",\\"35.637645\\"],[\\"76.746969\\",\\"35.630442\\"],[\\"76.675837\\",\\"35.721674\\"],[\\"76.57151\\",\\"35.752903\\"],[\\"76.552477\\",\\"35.878323\\"],[\\"76.372211\\",\\"35.795695\\"],[\\"76.149781\\",\\"35.797227\\"],[\\"76.124933\\",\\"35.947734\\"],[\\"75.922673\\",\\"36.058952\\"],[\\"75.911558\\",\\"36.150212\\"],[\\"76.037836\\",\\"36.25097\\"],[\\"75.962627\\",\\"36.325913\\"],[\\"75.987883\\",\\"36.449905\\"],[\\"75.852334\\",\\"36.642976\\"],[\\"75.645268\\",\\"36.740208\\"],[\\"75.442793\\",\\"36.696296\\"],[\\"75.389578\\",\\"36.92691\\"],[\\"75.229053\\",\\"36.936669\\"],[\\"75.144038\\",\\"36.993436\\"],[\\"74.896481\\",\\"36.905551\\"],[\\"74.830134\\",\\"37.022531\\"],[\\"74.731107\\",\\"36.999897\\"],[\\"74.690745\\",\\"37.052831\\"],[\\"74.559724\\",\\"37.004866\\"],[\\"74.481919\\",\\"37.046871\\"],[\\"74.437845\\",\\"37.120308\\"],[\\"74.499922\\",\\"37.266966\\"],[\\"74.739861\\",\\"37.314987\\"],[\\"74.866312\\",\\"37.253902\\"],[\\"75.109062\\",\\"37.372562\\"],[\\"75.102367\\",\\"37.44057\\"],[\\"74.921629\\",\\"37.536802\\"],[\\"74.864573\\",\\"37.654148\\"],[\\"74.964759\\",\\"37.773242\\"],[\\"74.890065\\",\\"37.834937\\"],[\\"74.908884\\",\\"37.982278\\"],[\\"74.777327\\",\\"38.153069\\"],[\\"74.761705\\",\\"38.335766\\"],[\\"74.838288\\",\\"38.415972\\"],[\\"74.834661\\",\\"38.466073\\"],[\\"74.630191\\",\\"38.571841\\"],[\\"74.373536\\",\\"38.625873\\"],[\\"74.159667\\",\\"38.646204\\"],[\\"74.103234\\",\\"38.581\\"],[\\"74.111817\\",\\"38.521998\\"],[\\"74.000838\\",\\"38.494528\\"],[\\"73.77285\\",\\"38.599147\\"],[\\"73.670411\\",\\"38.8621\\"],[\\"73.725193\\",\\"38.95749\\"],[\\"73.802719\\",\\"38.951449\\"],[\\"73.807654\\",\\"38.986017\\"],[\\"73.72221\\",\\"39.008697\\"],[\\"73.473516\\",\\"39.38863\\"],[\\"73.616295\\",\\"39.498494\\"],[\\"73.852308\\",\\"39.511093\\"],[\\"73.918183\\",\\"39.600828\\"],[\\"73.897347\\",\\"39.705585\\"],[\\"73.808942\\",\\"39.800228\\"],[\\"73.93934\\",\\"39.994893\\"],[\\"73.923182\\",\\"40.040084\\"],[\\"74.206402\\",\\"40.150079\\"],[\\"74.349396\\",\\"40.120697\\"],[\\"74.57305\\",\\"40.295485\\"],[\\"74.65313\\",\\"40.30568\\"],[\\"74.68538\\",\\"40.371234\\"],[\\"74.834146\\",\\"40.370645\\"],[\\"74.764109\\",\\"40.445837\\"],[\\"74.82522\\",\\"40.547706\\"],[\\"74.991968\\",\\"40.485604\\"],[\\"75.234225\\",\\"40.478276\\"],[\\"75.595829\\",\\"40.68866\\"],[\\"75.623209\\",\\"40.675235\\"],[\\"75.670288\\",\\"40.537172\\"],[\\"75.761075\\",\\"40.482617\\"],[\\"75.702088\\",\\"40.361506\\"],[\\"75.718331\\",\\"40.319244\\"],[\\"75.831778\\",\\"40.356634\\"],[\\"75.909498\\",\\"40.327457\\"],[\\"75.962198\\",\\"40.405801\\"],[\\"76.169136\\",\\"40.4108\\"],[\\"76.276231\\",\\"40.468254\\"],[\\"76.350474\\",\\"40.381058\\"],[\\"76.518981\\",\\"40.485522\\"],[\\"76.629574\\",\\"40.63177\\"],[\\"76.618888\\",\\"40.769281\\"],[\\"76.705191\\",\\"40.836687\\"],[\\"76.738064\\",\\"40.970777\\"],[\\"76.866853\\",\\"41.052415\\"],[\\"77.002079\\",\\"41.102703\\"],[\\"77.174621\\",\\"41.038594\\"],[\\"77.761016\\",\\"41.051719\\"],[\\"77.819595\\",\\"41.177071\\"],[\\"78.104789\\",\\"41.252161\\"],[\\"78.153155\\",\\"41.41058\\"],[\\"78.633699\\",\\"41.494773\\"],[\\"78.691227\\",\\"41.573398\\"],[\\"79.204752\\",\\"41.752489\\"],[\\"79.314144\\",\\"41.836204\\"],[\\"79.760721\\",\\"41.919283\\"],[\\"79.886034\\",\\"42.062214\\"],[\\"80.133162\\",\\"42.067184\\"],[\\"80.141101\\",\\"42.212865\\"],[\\"80.253518\\",\\"42.271926\\"],[\\"80.176806\\",\\"42.427971\\"],[\\"80.233755\\",\\"42.509043\\"],[\\"80.134728\\",\\"42.629333\\"],[\\"80.233669\\",\\"42.836907\\"],[\\"80.527124\\",\\"42.908804\\"],[\\"80.358446\\",\\"43.012006\\"],[\\"80.363209\\",\\"43.05597\\"],[\\"80.77054\\",\\"43.196057\\"],[\\"80.751915\\",\\"43.283969\\"],[\\"80.657952\\",\\"43.321619\\"],[\\"80.722024\\",\\"43.489763\\"],[\\"80.498157\\",\\"43.799783\\"],[\\"80.367136\\",\\"44.112086\\"],[\\"80.382199\\",\\"44.282371\\"],[\\"80.320637\\",\\"44.484489\\"],[\\"80.375676\\",\\"44.600628\\"],[\\"80.200903\\",\\"44.711915\\"],[\\"80.153825\\",\\"44.809898\\"],[\\"79.982829\\",\\"44.769908\\"],[\\"79.863417\\",\\"44.896027\\"],[\\"79.863911\\",\\"44.925979\\"],[\\"80.099001\\",\\"45.081976\\"],[\\"80.380783\\",\\"45.073778\\"],[\\"80.472493\\",\\"45.151008\\"],[\\"80.593643\\",\\"45.1361\\"],[\\"80.723355\\",\\"45.20611\\"],[\\"80.897505\\",\\"45.157969\\"],[\\"81.777248\\",\\"45.412611\\"],[\\"81.933761\\",\\"45.262246\\"],[\\"82.295816\\",\\"45.254845\\"],[\\"82.544253\\",\\"45.206065\\"],[\\"82.569401\\",\\"45.340669\\"],[\\"82.52743\\",\\"45.402307\\"],[\\"82.265496\\",\\"45.514783\\"],[\\"82.238288\\",\\"45.626914\\"],[\\"82.311373\\",\\"45.780155\\"],[\\"82.319655\\",\\"45.956177\\"],[\\"82.440763\\",\\"46.003982\\"],[\\"82.822452\\",\\"46.775333\\"],[\\"83.012309\\",\\"47.24291\\"],[\\"83.148286\\",\\"47.241861\\"],[\\"83.371532\\",\\"47.179737\\"],[\\"83.583899\\",\\"47.087891\\"],[\\"83.927865\\",\\"46.999324\\"],[\\"84.753106\\",\\"47.038661\\"],[\\"84.955001\\",\\"46.896507\\"],[\\"85.227256\\",\\"47.083274\\"],[\\"85.529079\\",\\"47.087102\\"],[\\"85.670679\\",\\"47.295094\\"],[\\"85.656817\\",\\"47.416255\\"],[\\"85.581307\\",\\"47.505664\\"],[\\"85.500433\\",\\"48.023314\\"],[\\"85.564678\\",\\"48.210504\\"],[\\"85.778117\\",\\"48.445159\\"],[\\"86.21609\\",\\"48.461326\\"],[\\"86.297393\\",\\"48.520485\\"],[\\"86.571493\\",\\"48.56921\\"],[\\"86.745751\\",\\"48.738276\\"],[\\"86.72689\\",\\"48.79468\\"],[\\"86.785169\\",\\"48.850936\\"],[\\"86.706676\\",\\"48.980358\\"],[\\"86.708565\\",\\"49.011387\\"],[\\"86.889625\\",\\"49.162344\\"],[\\"87.145572\\",\\"49.183316\\"],[\\"87.435358\\",\\"49.10582\\"],[\\"87.476878\\",\\"49.120484\\"],[\\"87.490826\\",\\"49.169134\\"],[\\"87.836187\\",\\"49.198616\\"],[\\"87.895432\\",\\"49.115877\\"],[\\"87.87024\\",\\"49.056222\\"],[\\"87.9406\\",\\"48.974696\\"],[\\"87.803872\\",\\"48.87904\\"],[\\"88.125672\\",\\"48.72326\\"],[\\"88.023491\\",\\"48.591881\\"],[\\"88.35763\\",\\"48.495848\\"],[\\"88.450756\\",\\"48.423234\\"],[\\"88.527102\\",\\"48.435337\\"],[\\"88.631537\\",\\"48.352171\\"],[\\"88.608513\\",\\"48.280466\\"],[\\"88.657844\\",\\"48.207172\\"],[\\"88.828926\\",\\"48.136652\\"],[\\"88.942652\\",\\"48.146274\\"],[\\"89.088199\\",\\"48.017358\\"],[\\"89.571383\\",\\"48.066881\\"],[\\"89.777999\\",\\"47.863838\\"],[\\"90.077548\\",\\"47.910676\\"],[\\"90.155997\\",\\"47.747389\\"],[\\"90.399628\\",\\"47.669347\\"],[\\"90.413575\\",\\"47.647046\\"],[\\"90.398619\\",\\"47.62125\\"]];var JPN=[[\\"145.824681\\",\\"43.408601\\"],[\\"145.802708\\",\\"43.198731\\"],[\\"145.188847\\",\\"43.068449\\"],[\\"144.992667\\",\\"42.907867\\"],[\\"143.970938\\",\\"42.890345\\"],[\\"143.384543\\",\\"42.351736\\"],[\\"143.299399\\",\\"41.875506\\"],[\\"142.95333\\",\\"42.100071\\"],[\\"142.391844\\",\\"42.272669\\"],[\\"141.369501\\",\\"42.535185\\"],[\\"140.832544\\",\\"42.147648\\"],[\\"141.028863\\",\\"41.945699\\"],[\\"141.296655\\",\\"41.765675\\"],[\\"141.564447\\",\\"41.265171\\"],[\\"141.675004\\",\\"40.481173\\"],[\\"141.829516\\",\\"40.300647\\"],[\\"141.982619\\",\\"40.122464\\"],[\\"142.142627\\",\\"39.594221\\"],[\\"142.025897\\",\\"39.368452\\"],[\\"142.021777\\",\\"39.317473\\"],[\\"141.850783\\",\\"38.901626\\"],[\\"140.939308\\",\\"35.65669\\"],[\\"139.436268\\",\\"34.193845\\"],[\\"137.347075\\",\\"34.1603\\"],[\\"135.63835\\",\\"33.29272\\"],[\\"133.488103\\",\\"32.70897\\"],[\\"131.614016\\",\\"31.325292\\"],[\\"130.633951\\",\\"28.842845\\"],[\\"127.785048\\",\\"25.789008\\"],[\\"126.597333\\",\\"26.344784\\"],[\\"128.404011\\",\\"28.563857\\"],[\\"128.940636\\",\\"30.856318\\"],[\\"128.544464\\",\\"32.79621\\"],[\\"129.194642\\",\\"34.475467\\"],[\\"129.324698\\",\\"34.765641\\"],[\\"129.502255\\",\\"34.700627\\"],[\\"129.480282\\",\\"33.855809\\"],[\\"130.439605\\",\\"33.915587\\"],[\\"130.801388\\",\\"34.159716\\"],[\\"130.791882\\",\\"34.445506\\"],[\\"131.121471\\",\\"34.437578\\"],[\\"131.298124\\",\\"34.567727\\"],[\\"132.535148\\",\\"35.287335\\"],[\\"132.978675\\",\\"36.154847\\"],[\\"133.268559\\",\\"36.366209\\"],[\\"134.710796\\",\\"35.708808\\"],[\\"135.303308\\",\\"35.794165\\"],[\\"136.404389\\",\\"36.456814\\"],[\\"136.612743\\",\\"37.37546\\"],[\\"137.409252\\",\\"37.580348\\"],[\\"137.291471\\",\\"36.906421\\"],[\\"137.982237\\",\\"37.126821\\"],[\\"138.504087\\",\\"37.383552\\"],[\\"138.758146\\",\\"37.83898\\"],[\\"139.207212\\",\\"38.04151\\"],[\\"139.310081\\",\\"38.315743\\"],[\\"139.737028\\",\\"38.85997\\"],[\\"139.403318\\",\\"39.234917\\"],[\\"139.952634\\",\\"39.328459\\"],[\\"140.002073\\",\\"39.745742\\"],[\\"139.695586\\",\\"39.824208\\"],[\\"139.679107\\",\\"40.025361\\"],[\\"139.935912\\",\\"40.077921\\"],[\\"140.001079\\",\\"40.309807\\"],[\\"139.922802\\",\\"40.434311\\"],[\\"139.828954\\",\\"40.646676\\"],[\\"139.95008\\",\\"40.766604\\"],[\\"139.957833\\",\\"41.432491\\"],[\\"140.001779\\",\\"42.027933\\"],[\\"139.389291\\",\\"42.038134\\"],[\\"139.346719\\",\\"42.242877\\"],[\\"139.63099\\",\\"42.291658\\"],[\\"139.72712\\",\\"42.641155\\"],[\\"139.942098\\",\\"42.710048\\"],[\\"140.194783\\",\\"42.842098\\"],[\\"140.30396\\",\\"42.856193\\"],[\\"140.309453\\",\\"43.306551\\"],[\\"140.393224\\",\\"43.399418\\"],[\\"140.61976\\",\\"43.355264\\"],[\\"140.788732\\",\\"43.238558\\"],[\\"140.923314\\",\\"43.24556\\"],[\\"141.029058\\",\\"43.24356\\"],[\\"141.083989\\",\\"43.216544\\"],[\\"141.141667\\",\\"43.185513\\"],[\\"141.336675\\",\\"43.240561\\"],[\\"141.328435\\",\\"43.731771\\"],[\\"141.350408\\",\\"43.792272\\"],[\\"141.594854\\",\\"43.937818\\"],[\\"141.565334\\",\\"44.291761\\"],[\\"141.70541\\",\\"44.45177\\"],[\\"141.708157\\",\\"44.742196\\"],[\\"141.683437\\",\\"45.002047\\"],[\\"141.226594\\",\\"45.076599\\"],[\\"141.053559\\",\\"45.165748\\"],[\\"140.987641\\",\\"45.335905\\"],[\\"140.943696\\",\\"45.481498\\"],[\\"141.201589\\",\\"45.501064\\"],[\\"141.972005\\",\\"45.52416\\"],[\\"142.341996\\",\\"45.204477\\"],[\\"142.567215\\",\\"45.014513\\"],[\\"142.747966\\",\\"44.801094\\"],[\\"143.487122\\",\\"44.343678\\"],[\\"144.463587\\",\\"44.078617\\"],[\\"144.874201\\",\\"44.098345\\"],[\\"145.125513\\",\\"44.222478\\"],[\\"145.300832\\",\\"44.391445\\"],[\\"145.487445\\",\\"44.320885\\"],[\\"145.111163\\",\\"43.848378\\"],[\\"145.420933\\",\\"43.545126\\"],[\\"145.451146\\",\\"43.393635\\"]];var EAST=[[\\"73.757316\\",\\"29.95798\\"],[\\"73.045185\\",\\"28.989136\\"],[\\"72.434431\\",\\"28.60931\\"],[\\"72.060098\\",\\"28.097836\\"],[\\"71.631749\\",\\"27.60702\\"],[\\"70.67236\\",\\"27.593264\\"],[\\"69.82743\\",\\"27.041579\\"],[\\"70.337045\\",\\"26.566045\\"],[\\"70.070655\\",\\"26.098932\\"],[\\"70.070655\\",\\"25.85946\\"],[\\"70.290717\\",\\"25.713457\\"],[\\"70.626599\\",\\"25.671708\\"],[\\"70.68451\\",\\"25.201036\\"],[\\"70.974064\\",\\"24.791642\\"],[\\"70.811914\\",\\"24.612763\\"],[\\"70.139151\\",\\"24.465923\\"],[\\"69.268014\\",\\"24.435423\\"],[\\"68.313114\\",\\"24.267539\\"],[\\"67.911051\\",\\"23.808548\\"],[\\"68.547651\\",\\"23.00912\\"],[\\"69.11724\\",\\"22.684917\\"],[\\"68.748682\\",\\"22.406416\\"],[\\"69.301519\\",\\"21.536417\\"],[\\"70.153052\\",\\"20.55461\\"],[\\"71.170222\\",\\"20.332219\\"],[\\"72.234349\\",\\"21.204506\\"],[\\"72.501752\\",\\"21.087142\\"],[\\"72.627589\\",\\"19.003767\\"],[\\"72.973641\\",\\"16.878922\\"],[\\"74.267757\\",\\"13.888898\\"],[\\"75.369075\\",\\"10.48118\\"],[\\"76.976429\\",\\"7.781262\\"],[\\"78.374805\\",\\"8.242836\\"],[\\"79.427902\\",\\"9.641233\\"],[\\"80.513091\\",\\"10.734685\\"],[\\"80.254133\\",\\"11.953377\\"],[\\"80.702994\\",\\"13.082541\\"],[\\"80.402232\\",\\"15.312175\\"],[\\"82.991824\\",\\"16.887862\\"],[\\"85.259974\\",\\"19.051683\\"],[\\"87.784208\\",\\"21.10679\\"],[\\"89.263244\\",\\"21.658877\\"],[\\"89.121009\\",\\"23.437218\\"],[\\"88.869364\\",\\"23.717994\\"],[\\"88.93501\\",\\"24.317619\\"],[\\"88.267603\\",\\"24.596482\\"],[\\"88.727129\\",\\"25.073086\\"],[\\"89.186656\\",\\"25.132532\\"],[\\"88.891246\\",\\"25.626788\\"],[\\"88.650542\\",\\"25.666241\\"],[\\"88.201956\\",\\"25.892841\\"],[\\"88.420778\\",\\"26.12883\\"],[\\"88.54113\\",\\"26.285892\\"],[\\"89.241361\\",\\"26.020727\\"],[\\"89.613359\\",\\"25.863309\\"],[\\"89.657124\\",\\"25.330477\\"],[\\"90.190932\\",\\"25.070998\\"],[\\"91.175632\\",\\"25.051175\\"],[\\"91.811935\\",\\"25.05221\\"],[\\"92.234344\\",\\"24.983507\\"],[\\"92.104658\\",\\"24.649259\\"],[\\"91.844714\\",\\"24.363456\\"],[\\"91.46563\\",\\"24.215373\\"],[\\"90.999897\\",\\"23.839459\\"],[\\"91.216517\\",\\"23.054471\\"],[\\"91.389672\\",\\"22.300847\\"],[\\"92.125338\\",\\"20.623521\\"],[\\"93.946113\\",\\"18.753448\\"],[\\"92.823675\\",\\"16.135717\\"],[\\"91.224276\\",\\"9.998681\\"],[\\"93.522355\\",\\"5.752403\\"],[\\"96.409859\\",\\"0.991383\\"],[\\"100.048825\\",\\"-3.72227\\"],[\\"104.60328\\",\\"-7.736835\\"],[\\"114.01025\\",\\"-9.967468\\"],[\\"123.433702\\",\\"-11.032285\\"],[\\"123.717523\\",\\"-10.536628\\"],[\\"124.427075\\",\\"-10.257467\\"],[\\"125.004217\\",\\"-9.79418\\"],[\\"125.026253\\",\\"-9.527403\\"],[\\"125.12788\\",\\"-9.406056\\"],[\\"125.031601\\",\\"-9.358561\\"],[\\"124.946021\\",\\"-9.216037\\"],[\\"125.026253\\",\\"-9.168516\\"],[\\"125.192065\\",\\"-9.13155\\"],[\\"125.181368\\",\\"-8.982538\\"],[\\"124.999509\\",\\"-8.987821\\"],[\\"124.919277\\",\\"-8.924418\\"],[\\"125.095787\\",\\"-8.596662\\"],[\\"125.555784\\",\\"-8.088612\\"],[\\"125.721597\\",\\"-8.120384\\"],[\\"127.292232\\",\\"-8.326419\\"],[\\"132.424841\\",\\"-8.447132\\"],[\\"139.646777\\",\\"-8.512957\\"],[\\"141.039618\\",\\"-9.209048\\"],[\\"141.025347\\",\\"-6.894209\\"],[\\"140.978655\\",\\"-6.887392\\"],[\\"140.92235\\",\\"-6.851943\\"],[\\"140.912737\\",\\"-6.791946\\"],[\\"140.905871\\",\\"-6.737397\\"],[\\"140.850939\\",\\"-6.695117\\"],[\\"140.903124\\",\\"-6.59554\\"],[\\"140.945696\\",\\"-6.509588\\"],[\\"141.000442\\",\\"-6.341825\\"],[\\"140.971754\\",\\"-2.322171\\"],[\\"131.63417\\",\\"2.671779\\"],[\\"125.182746\\",\\"17.665698\\"],[\\"120.512231\\",\\"19.243264\\"],[\\"119.486602\\",\\"16.550429\\"],[\\"119.820154\\",\\"12.379244\\"],[\\"115.293339\\",\\"5.77989\\"],[\\"114.675587\\",\\"4.850295\\"],[\\"114.550618\\",\\"4.735342\\"],[\\"113.923024\\",\\"4.60805\\"],[\\"113.581092\\",\\"3.881824\\"],[\\"113.423754\\",\\"3.763395\\"],[\\"113.138025\\",\\"3.427757\\"],[\\"112.798973\\",\\"3.119213\\"],[\\"111.886744\\",\\"2.960093\\"],[\\"109.608393\\",\\"3.016867\\"],[\\"108.771364\\",\\"3.935896\\"],[\\"107.181008\\",\\"7.101455\\"],[\\"110.509765\\",\\"12.398562\\"],[\\"108.171244\\",\\"18.449712\\"],[\\"108.482399\\",\\"21.923911\\"],[\\"106.042422\\",\\"23.36869\\"],[\\"103.861684\\",\\"23.500971\\"],[\\"101.853026\\",\\"22.51803\\"],[\\"101.964992\\",\\"22.453371\\"],[\\"102.079606\\",\\"22.467488\\"],[\\"102.100842\\",\\"22.366033\\"],[\\"102.192713\\",\\"22.264854\\"],[\\"102.457234\\",\\"22.052786\\"],[\\"102.482552\\",\\"21.991854\\"],[\\"102.505944\\",\\"21.933096\\"],[\\"102.598494\\",\\"21.858522\\"],[\\"102.635027\\",\\"21.768076\\"],[\\"102.625285\\",\\"21.706993\\"],[\\"102.652076\\",\\"21.663993\\"],[\\"102.749497\\",\\"21.641356\\"],[\\"102.798208\\",\\"21.673047\\"],[\\"102.841349\\",\\"21.836472\\"],[\\"102.857688\\",\\"21.688772\\"],[\\"102.936435\\",\\"21.684707\\"],[\\"102.971433\\",\\"21.587108\\"],[\\"102.897061\\",\\"21.530145\\"],[\\"102.831439\\",\\"21.416153\\"],[\\"102.853313\\",\\"21.363197\\"],[\\"102.770191\\",\\"21.249074\\"],[\\"102.905811\\",\\"20.975636\\"],[\\"103.219101\\",\\"20.747931\\"],[\\"103.517772\\",\\"20.714677\\"],[\\"103.809332\\",\\"20.581588\\"],[\\"103.928404\\",\\"20.796397\\"],[\\"104.17602\\",\\"20.868718\\"],[\\"104.456453\\",\\"20.674762\\"],[\\"104.597217\\",\\"20.649539\\"],[\\"104.494205\\",\\"20.561152\\"],[\\"104.33078\\",\\"20.448774\\"],[\\"104.574769\\",\\"20.381484\\"],[\\"104.658948\\",\\"20.213054\\"],[\\"104.76838\\",\\"20.149846\\"],[\\"104.838529\\",\\"20.181454\\"],[\\"104.938282\\",\\"20.043215\\"],[\\"104.745932\\",\\"19.888842\\"],[\\"104.790827\\",\\"19.817585\\"],[\\"104.656142\\",\\"19.725166\\"],[\\"104.580381\\",\\"19.643265\\"],[\\"104.41625\\",\\"19.738372\\"],[\\"104.315236\\",\\"19.711959\\"],[\\"104.004834\\",\\"19.776374\\"],[\\"103.978829\\",\\"19.601517\\"],[\\"104.057089\\",\\"19.487272\\"],[\\"103.795479\\",\\"19.292317\\"],[\\"104.05618\\",\\"19.205901\\"],[\\"104.303857\\",\\"19.041792\\"],[\\"104.509718\\",\\"18.953592\\"],[\\"104.638381\\",\\"18.819682\\"],[\\"104.82816\\",\\"18.734411\\"],[\\"105.081179\\",\\"18.714495\\"],[\\"105.090265\\",\\"18.561021\\"],[\\"105.010482\\",\\"18.494337\\"],[\\"105.215532\\",\\"18.232365\\"],[\\"105.507333\\",\\"18.022503\\"],[\\"105.673181\\",\\"17.706155\\"],[\\"105.959258\\",\\"17.411042\\"],[\\"106.393016\\",\\"16.974064\\"],[\\"106.530565\\",\\"16.907086\\"],[\\"106.511314\\",\\"16.705452\\"],[\\"106.610307\\",\\"16.485756\\"],[\\"106.704089\\",\\"16.360817\\"],[\\"106.855183\\",\\"16.430793\\"],[\\"106.917705\\",\\"16.245803\\"],[\\"107.074009\\",\\"16.275813\\"],[\\"107.178212\\",\\"16.130721\\"],[\\"107.386617\\",\\"15.975505\\"],[\\"107.256364\\",\\"15.895346\\"],[\\"107.157745\\",\\"15.729918\\"],[\\"107.270294\\",\\"15.538977\\"],[\\"107.541111\\",\\"15.371176\\"],[\\"107.598724\\",\\"15.119441\\"],[\\"107.495192\\",\\"15.087312\\"],[\\"107.421241\\",\\"14.973038\\"],[\\"107.491494\\",\\"14.719275\\"],[\\"107.439728\\",\\"14.558285\\"],[\\"107.365777\\",\\"14.619117\\"],[\\"107.28443\\",\\"14.576179\\"],[\\"107.125343\\",\\"14.454386\\"],[\\"107.058787\\",\\"14.468707\\"],[\\"106.862816\\",\\"14.336197\\"],[\\"106.714913\\",\\"14.443644\\"],[\\"106.640961\\",\\"14.525985\\"],[\\"106.467176\\",\\"14.622607\\"],[\\"106.385829\\",\\"14.475868\\"],[\\"106.219438\\",\\"14.500928\\"],[\\"106.189858\\",\\"14.42932\\"],[\\"106.104814\\",\\"14.407834\\"],[\\"105.956911\\",\\"14.346944\\"],[\\"105.993887\\",\\"14.192854\\"],[\\"106.138092\\",\\"14.056594\\"],[\\"106.067838\\",\\"13.984846\\"],[\\"105.938423\\",\\"13.948964\\"],[\\"105.860774\\",\\"14.067355\\"],[\\"105.570516\\",\\"14.196239\\"],[\\"105.40579\\",\\"14.123984\\"],[\\"105.307739\\",\\"14.207645\\"],[\\"105.23322\\",\\"14.257067\\"],[\\"105.284207\\",\\"14.321679\\"],[\\"105.397946\\",\\"14.336879\\"],[\\"105.499919\\",\\"14.435654\\"],[\\"105.550906\\",\\"14.617894\\"],[\\"105.535217\\",\\"14.773437\\"],[\\"105.660723\\",\\"14.90613\\"],[\\"105.629347\\",\\"15.019802\\"],[\\"105.511685\\",\\"15.118269\\"],[\\"105.543062\\",\\"15.182626\\"],[\\"105.660723\\",\\"15.2848\\"],[\\"105.543062\\",\\"15.368016\\"],[\\"105.641113\\",\\"15.40205\\"],[\\"105.652879\\",\\"15.526792\\"],[\\"105.672489\\",\\"15.723201\\"],[\\"105.433244\\",\\"15.866611\\"],[\\"105.419865\\",\\"16.077323\\"],[\\"105.134284\\",\\"16.158015\\"],[\\"105.05029\\",\\"16.303179\\"],[\\"104.798307\\",\\"16.56635\\"],[\\"104.815106\\",\\"16.791639\\"],[\\"104.807079\\",\\"17.064937\\"],[\\"104.834545\\",\\"17.357467\\"],[\\"104.746654\\",\\"17.518618\\"],[\\"104.392993\\",\\"17.569592\\"],[\\"104.221867\\",\\"17.790865\\"],[\\"104.071113\\",\\"18.043041\\"],[\\"103.989584\\",\\"18.196169\\"],[\\"103.880878\\",\\"18.236734\\"],[\\"103.692584\\",\\"18.269917\\"],[\\"103.616878\\",\\"18.310466\\"],[\\"103.546996\\",\\"18.349162\\"],[\\"103.428584\\",\\"18.336313\\"],[\\"103.370348\\",\\"18.277339\\"],[\\"103.302336\\",\\"18.221647\\"],[\\"103.237773\\",\\"18.102183\\"],[\\"103.207191\\",\\"18.040806\\"],[\\"103.105249\\",\\"17.937384\\"],[\\"102.938746\\",\\"17.875949\\"],[\\"102.914959\\",\\"17.827432\\"],[\\"102.813018\\",\\"17.765959\\"],[\\"102.687291\\",\\"17.753015\\"],[\\"102.568359\\",\\"17.830667\\"],[\\"102.510593\\",\\"17.840371\\"],[\\"102.422244\\",\\"17.921219\\"],[\\"102.310109\\",\\"17.960013\\"],[\\"102.204769\\",\\"17.995566\\"],[\\"102.143605\\",\\"18.066652\\"],[\\"101.987295\\",\\"17.966477\\"],[\\"101.868364\\",\\"17.927685\\"],[\\"101.647491\\",\\"17.811257\\"],[\\"101.148809\\",\\"17.535022\\"],[\\"101.023374\\",\\"17.599797\\"],[\\"101.039054\\",\\"17.808912\\"],[\\"101.175591\\",\\"17.993048\\"],[\\"101.212078\\",\\"18.10208\\"],[\\"101.219896\\",\\"18.173904\\"],[\\"101.206865\\",\\"18.240749\\"],[\\"101.212078\\",\\"18.344679\\"],[\\"101.107829\\",\\"18.394147\\"],[\\"101.092192\\",\\"18.45349\\"],[\\"101.206865\\",\\"18.578877\\"],[\\"101.31372\\",\\"18.655442\\"],[\\"101.272021\\",\\"18.741845\\"],[\\"101.272021\\",\\"18.830671\\"],[\\"101.311114\\",\\"18.939171\\"],[\\"101.370997\\",\\"19.079681\\"],[\\"101.298023\\",\\"19.148632\\"],[\\"101.279779\\",\\"19.212632\\"],[\\"101.22818\\",\\"19.375675\\"],[\\"101.230424\\",\\"19.441269\\"],[\\"101.295484\\",\\"19.487804\\"],[\\"101.29997\\",\\"19.591402\\"],[\\"101.239397\\",\\"19.633668\\"],[\\"101.145173\\",\\"19.587175\\"],[\\"101.093574\\",\\"19.629442\\"],[\\"100.94102\\",\\"19.650571\\"],[\\"100.893907\\",\\"19.65691\\"],[\\"100.864742\\",\\"19.616763\\"],[\\"100.835578\\",\\"19.570265\\"],[\\"100.770518\\",\\"19.534326\\"],[\\"100.611233\\",\\"19.574493\\"],[\\"100.584312\\",\\"19.52164\\"],[\\"100.525983\\",\\"19.540669\\"],[\\"100.46541\\",\\"19.637894\\"],[\\"100.436245\\",\\"19.777288\\"],[\\"100.541687\\",\\"19.91867\\"],[\\"100.597773\\",\\"20.190526\\"],[\\"100.502946\\",\\"20.195053\\"],[\\"100.428788\\",\\"20.262059\\"],[\\"100.379218\\",\\"20.36601\\"],[\\"100.329779\\",\\"20.413638\\"],[\\"100.244635\\",\\"20.387895\\"],[\\"100.173224\\",\\"20.317079\\"],[\\"100.160865\\",\\"20.244943\\"],[\\"100.114789\\",\\"20.260301\\"],[\\"100.107922\\",\\"20.315689\\"],[\\"100.155988\\",\\"20.507461\\"],[\\"100.211891\\",\\"20.650056\\"],[\\"100.290818\\",\\"20.736459\\"],[\\"100.399973\\",\\"20.811825\\"],[\\"100.562866\\",\\"20.788277\\"],[\\"100.673701\\",\\"20.899705\\"],[\\"100.59616\\",\\"20.954029\\"],[\\"100.751867\\",\\"21.254036\\"],[\\"100.998402\\",\\"21.338663\\"],[\\"101.211622\\",\\"21.580378\\"],[\\"101.209043\\",\\"21.846211\\"],[\\"100.909901\\",\\"21.894492\\"],[\\"100.207565\\",\\"21.580378\\"],[\\"100.051491\\",\\"22.159742\\"],[\\"99.466212\\",\\"22.436515\\"],[\\"99.71333\\",\\"23.024318\\"],[\\"99.352488\\",\\"23.281431\\"],[\\"99.03983\\",\\"24.3247\\"],[\\"98.101855\\",\\"24.95993\\"],[\\"98.855913\\",\\"25.608485\\"],[\\"98.911088\\",\\"26.812993\\"],[\\"98.892697\\",\\"27.483968\\"],[\\"98.340947\\",\\"27.826069\\"],[\\"98.120247\\",\\"28.377665\\"],[\\"97.586888\\",\\"28.733061\\"],[\\"97.108705\\",\\"28.329109\\"],[\\"96.658506\\",\\"27.787659\\"],[\\"96.296725\\",\\"28.010502\\"],[\\"95.847241\\",\\"28.136253\\"],[\\"95.288126\\",\\"27.787659\\"],[\\"94.685158\\",\\"27.233428\\"],[\\"93.281889\\",\\"26.647032\\"],[\\"92.037851\\",\\"26.720259\\"],[\\"90.141229\\",\\"26.820605\\"],[\\"88.984724\\",\\"26.833974\\"],[\\"88.731159\\",\\"27.080308\\"],[\\"88.794435\\",\\"27.331629\\"],[\\"88.741186\\",\\"27.914582\\"],[\\"88.223484\\",\\"27.953015\\"],[\\"88.169108\\",\\"27.50057\\"],[\\"87.774017\\",\\"27.262697\\"],[\\"88.215457\\",\\"26.870398\\"],[\\"87.783036\\",\\"26.535989\\"],[\\"87.047344\\",\\"26.702224\\"],[\\"84.777332\\",\\"27.310285\\"],[\\"83.539214\\",\\"27.665305\\"],[\\"82.385985\\",\\"27.880248\\"],[\\"81.010299\\",\\"28.662263\\"],[\\"80.547568\\",\\"29.001896\\"],[\\"81.345045\\",\\"30.304903\\"],[\\"80.749935\\",\\"31.185747\\"],[\\"80.056967\\",\\"31.015739\\"],[\\"79.215234\\",\\"31.178494\\"],[\\"78.991224\\",\\"31.346766\\"],[\\"79.254658\\",\\"31.656243\\"],[\\"78.835019\\",\\"31.979804\\"],[\\"78.65109\\",\\"32.12011\\"],[\\"78.595912\\",\\"32.240756\\"],[\\"78.591313\\",\\"32.400075\\"],[\\"78.669483\\",\\"32.54361\\"],[\\"78.739513\\",\\"32.426665\\"],[\\"78.84424\\",\\"32.288005\\"],[\\"79.067657\\",\\"32.24668\\"],[\\"79.277111\\",\\"32.470789\\"],[\\"79.395802\\",\\"32.676713\\"],[\\"79.235221\\",\\"33.233259\\"],[\\"79.011803\\",\\"33.47819\\"],[\\"78.84424\\",\\"33.681772\\"],[\\"79.182009\\",\\"34.336185\\"],[\\"78.821102\\",\\"34.565916\\"],[\\"78.428537\\",\\"34.758609\\"],[\\"78.294895\\",\\"34.940474\\"],[\\"78.23791\\",\\"35.530039\\"],[\\"77.722544\\",\\"35.628785\\"],[\\"77.294994\\",\\"35.609184\\"],[\\"76.821489\\",\\"35.701892\\"],[\\"76.684572\\",\\"35.988603\\"],[\\"76.399329\\",\\"35.919333\\"],[\\"76.159724\\",\\"35.933192\\"],[\\"76.165429\\",\\"36.20986\\"],[\\"76.074151\\",\\"36.366207\\"],[\\"75.999987\\",\\"36.641347\\"],[\\"75.714744\\",\\"36.787688\\"],[\\"75.562518\\",\\"36.805399\\"],[\\"75.481245\\",\\"36.811057\\"],[\\"75.45651\\",\\"36.950968\\"],[\\"75.253968\\",\\"37.023882\\"],[\\"75.084541\\",\\"37.066268\\"],[\\"74.894884\\",\\"37.084426\\"],[\\"74.735572\\",\\"37.122745\\"],[\\"74.643309\\",\\"37.074934\\"],[\\"74.566145\\",\\"37.033976\\"],[\\"74.549925\\",\\"36.938948\\"],[\\"74.491692\\",\\"37.015218\\"],[\\"74.377803\\",\\"36.998366\\"],[\\"74.261908\\",\\"36.915016\\"],[\\"74.132106\\",\\"36.91687\\"],[\\"74.057933\\",\\"36.840851\\"],[\\"73.967535\\",\\"36.853836\\"],[\\"73.925813\\",\\"36.892775\\"],[\\"73.808039\\",\\"36.908632\\"],[\\"73.728388\\",\\"36.920709\\"],[\\"73.639124\\",\\"36.911926\\"],[\\"73.699986\\",\\"36.820121\\"],[\\"73.765904\\",\\"36.814624\\"],[\\"73.833196\\",\\"36.776135\\"],[\\"73.853795\\",\\"36.743128\\"],[\\"73.834569\\",\\"36.711208\\"],[\\"73.735692\\",\\"36.736525\\"],[\\"73.657414\\",\\"36.707906\\"],[\\"73.599736\\",\\"36.711208\\"],[\\"73.57227\\",\\"36.735425\\"],[\\"73.517339\\",\\"36.729922\\"],[\\"73.397862\\",\\"36.757433\\"],[\\"73.319585\\",\\"36.738726\\"],[\\"73.241307\\",\\"36.720664\\"],[\\"73.175389\\",\\"36.732772\\"],[\\"73.112218\\",\\"36.71516\\"],[\\"73.032567\\",\\"36.686532\\"],[\\"73.039433\\",\\"36.651284\\"],[\\"73.060033\\",\\"36.609405\\"],[\\"73.036687\\",\\"36.564195\\"],[\\"73.002355\\",\\"36.529994\\"],[\\"72.958409\\",\\"36.507921\\"],[\\"72.944676\\",\\"36.475904\\"],[\\"72.886998\\",\\"36.474799\\"],[\\"72.855412\\",\\"36.448292\\"],[\\"72.848546\\",\\"36.400777\\"],[\\"72.832334\\",\\"36.374217\\"],[\\"72.796629\\",\\"36.362053\\"],[\\"72.685258\\",\\"36.303681\\"],[\\"72.663286\\",\\"36.274901\\"],[\\"72.574022\\",\\"36.267151\\"],[\\"72.461412\\",\\"36.175196\\"],[\\"73.530389\\",\\"35.809316\\"],[\\"74.170542\\",\\"35.420826\\"],[\\"74.340245\\",\\"35.055408\\"],[\\"73.9237\\",\\"34.612198\\"],[\\"73.676858\\",\\"34.332391\\"],[\\"73.880481\\",\\"33.422673\\"],[\\"74.651862\\",\\"32.906095\\"],[\\"75.747223\\",\\"32.542685\\"],[\\"75.623802\\",\\"32.256112\\"],[\\"74.975842\\",\\"31.968632\\"],[\\"74.759855\\",\\"31.732749\\"],[\\"74.759855\\",\\"30.955369\\"],[\\"74.327882\\",\\"30.584206\\"],[\\"74.18929\\",\\"30.224947\\"],[\\"74.035013\\",\\"29.864372\\"]];var getOutseaData=function(e){if(e&&e===\\"mapbox\\"){return{boundsP16:[[CHN]],nebulaOutSea:[]}}else{return{boundsP16:[[CHN],[JPN],[EAST]],nebulaOutSea:[[JPN],[EAST]]}}};var geoUtil=new GeometryUtilCls({});var CONSTS$1={sV:\\"https://webapi.amap.com/style_icon/sprite_v8@2x.png\\",EU:[LangConf.my.type,LangConf.km.type,LangConf.PU.type,LangConf.th.type,LangConf.$U.type]};var MapboxLabelFormat$1=function(t){__extends(e,t);function e(e){var r=t.call(this)||this;r.kQ={};return r}e.prototype.Ns=function(e,r){t.prototype.Ns.call(this,e,r);return this.rV(e,r)};e.prototype.rV=function(e,r){var t=e.data||{};var i=t.poilabel||[];var a=e.road||[];var n={};var o=this.hV(e);var f;for(var s in i){if(i.hasOwnProperty(s)){f=i[s];var u=this.nV(f,o,r.zoom,r.VQ);n[s]=u}}var l=this.oV(a,{});return n};e.prototype.nV=function(e,r,t,i){var a=[];var n=this.kQ;for(var o=0,f=e;o<f.length;o++){var s=f[o];var u=s.name,l=s.position,v=s.id,c=s.minzoom,h=s.maxzoom,d=s.style,_=d===void 0?{}:d;if(i!==\\"mapbox\\"&&t>=9&&r&&!this.uV(l[0])){continue}var g=_.lV,y=_.th,m=_.ih,p=_.nh,b=_.qU,x=_.eh,C=_.textAnchor,M=C===void 0?\\"bottom\\":C,S=_.rh,R=_.sh,w=_.Kr,k=_.Qr;var T=[c,h];var A=null;if(p&&b&&x){this.Fs[CONSTS$1.sV]=1;A=[{image:CONSTS$1.sV,size:[b[6]/2,b[7]/2],clipOrigin:[b[4],b[5]],clipSize:[b[6],b[7]]}]}var I=null;if(u&&w){if(!n[w]){n[w]=Util$3.color2RgbaArray(w)}var $=n[w];var F=void 0;var P=0;if(!n[k]){n[k]=Util$3.color2RgbaArray(k||\\"\\")}if(n[k]){F=n[k];P=3}var L=this.fV(u)?[0,u.length]:[];this.Ws(u,L);I={txt:u,$G:L,direction:M||\\"center\\",offset:[0,0],style:{fontSize:S,fillColor:$,strokeColor:F,strokeWidth:P,fold:false}}}var E={data:{id:v,name:u,txt:u,position:l[0],positionType:\\"relative\\",zooms:[y,m],extData:{id:v,type:\\"poi\\"}},opts:{zIndex:g,zooms:T,visible:true}};if(A){E.opts.icon=A}if(I){E.opts.text=I}if(E.opts.text||E.opts.icon){a.push(E)}}return a};e.prototype.oV=function(e,r){var t;var i;for(var a=0,n=e;a<n.length;a++){var o=n[a];t=o.name;i=this.fV(t)?[0,t.length]:[];if(t){this.Ws(t,i)}}};e.prototype.DQ=function(e,r){var t=[];var i;var a;var n;var o;var f;for(var s=0,u=e;s<u.length;s++){var l=u[s];i=l.path;a=l.name||\\"\\";n=labelsUtil$2.aQ(a.split(\\"\\"));f=l.distance||1e5;o=l.style&&l.style[1]||{};o=l.style||{};var v=o.th,c=v===void 0?zoomRange[0]:v,h=o.ih,d=h===void 0?zoomRange[1]:h,_=o.Kr,g=o.Qr,y=o.rh,m=o.zIndex,p=o.Hr,b=p===void 0?\\"name_en\\":p;var x=_;var C=g;if(a&&i&&i.length){var M={path:i,positionType:\\"absolute\\",name:a,$G:[],CO:n,rank:m,BG:b,distance:f,zooms:[c,d],style:{fontSize:y||12,fillColor:x,strokeColor:C}};t.push(M)}}return t};e.prototype.fV=function(e){var r=LangManager.kU(e);return CONSTS$1.EU.indexOf(r)!==-1};e.prototype.uV=function(e){var r=\\"EPSG:3857\\";var t=ProjectionManager.getProjection(r).unproject(e[0],e[1]);var i=getOutseaData(\\"mapbox\\");var a=i.boundsP16;for(var n=0;n<a.length;n++){var o=a[n];var f=geoUtil.isPointInPolygon(t,o[0]);if(f){return false}}return true};e.prototype.hV=function(e){var r=e.Ro;var t=[[r[0],r[1]],[r[2],r[1]],[r[2],r[3]],[r[0],r[3]]];return this.cV(t)};e.prototype.cV=function(e){var r=[];for(var t=0;t<e.length;t++){var i=e[t];var a=\\"EPSG:3857\\";var n=ProjectionManager.getProjection(a).unproject(i[0],i[1]);r.push(n)}var o=getOutseaData(\\"mapbox\\");var f=o.boundsP16;for(var s=0;s<f.length;s++){var u=f[s];var l=geoUtil[\\"isRingInRingByMapboxB\\"](r,u[0]);if(l){return true}}return false};e.id=\\"mapbox\\";return e}(LabelFormat);var Color$1=function(){function e(e){this.type=\\"AMap.Color\\";this.rgba=[];this.Vb(e)}r=e;e.Wb=function(e,r){return{rgba:e.rgba}};e.Gb=function(e){return new r(e.rgba)};e.FV=function(e,r){var t=this.DV(e[0],e[1],e[2],e[3]);var i=t[0];var a=t[1];var n=t[2];var o=t[3];var f=.35;n=n-(n-.5)*r*f;a=a-(a-.5)*r*f*5;i=i+(i>.5?-.5:.5)*r*f;var s=this.GQ(i,a,n,o);return s};e.DV=function(e,r,t,i){var a=Math.max(e,r,t),n=Math.min(e,r,t),o,f,s=(a+n)/2,u;if(a===n){o=f=0}else{u=a-n;f=s>.5?u/(2-a-n):u/(a+n);switch(a){case e:o=(r-t)/u+(r<t?6:0);break;case r:o=(t-e)/u+2;break;case t:o=(e-r)/u+4;break}o/=6}return[o,f,s,i]};e.uQ=function(e,r,t){if(t<0){t+=1}if(t>1){t-=1}if(t<1/6){return e+(r-e)*6*t}if(t<1/2){return r}if(t<2/3){return e+(r-e)*(2/3-t)*6}return e};e.GQ=function(e,r,t,i){var a,n,o;if(r===0){a=n=o=t}else{var f=t<.5?t*(1+r):t+r-t*r,s=2*t-f;a=this.uQ(s,f,e+1/3);n=this.uQ(s,f,e);o=this.uQ(s,f,e-1/3)}return[a,n,o,i]};e.Hb=function(e,r){if(r===void 0){r=[]}for(var t=0,i=e.length;t<i;t+=2){r[t/2]=parseInt(e.substr(t,2),16)}return r};e.Yx=function(e){if(e.startsWith(\\"#\\")){e=e.substr(1)}if(colorNames[e]){return r.Hb(colorNames[e].substr(1))}if(e.length===1){return r.Hb(e+e+e+e+e+e)}if(e.length===3){return r.Hb(e[0]+e[0]+e[1]+e[1]+e[2]+e[2])}if(e.length===6){return r.Hb(e)}return[0,0,0]};e.normalize=function(e){var r=[];for(var t=0,i=e.length;t<i;t++){r[t]=e[t]/255}return r};e.create=function(e){if(e){return new r(e)}else{return null}};e.prototype.normalize=function(){return[this.rgba[0]/255,this.rgba[1]/255,this.rgba[2]/255,this.rgba[3]/255]};e.prototype.Vb=function(e){if(typeof e===\\"string\\"){if(colorNames[e]){this.Hb(colorNames[e].substr(1));return}if(e.length===0){return}if(e.startsWith(\\"#\\")){e=e.substr(1)}if(e.length===1){this.Hb(e+e+e+e+e+e);return}if(e.length===3){this.Hb(e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);return}if(e.length===6){this.Hb(e);return}if(e.length===8){this.$b(e);return}if(e.startsWith(\\"rgba(\\")){this.Yb(colorNames[e].substr(1));return}if(e.startsWith(\\"rgb(\\")){this.Kb(colorNames[e].substr(1));return}}else if(e instanceof Array){this.rgba[0]=e[0];this.rgba[1]=e[1];this.rgba[2]=e[2];this.rgba[3]=e[3]||255}};e.prototype.Hb=function(e){this.$b(e+\\"FF\\")};e.prototype.$b=function(e){for(var r=0,t=e.length;r<t;r+=2){this.rgba[r/2]=parseInt(e.substr(r,2),16)}};e.prototype.Kb=function(e){var r=e.split(\\",\\");this.rgba[0]=parseInt(r[0].substr(4),10);this.rgba[1]=parseInt(r[1],10);this.rgba[2]=parseInt(r[2],10);this.rgba[3]=255};e.prototype.Yb=function(e){var r=e.split(\\",\\");this.rgba[0]=parseInt(r[0].substr(5),10);this.rgba[1]=parseInt(r[1],10);this.rgba[2]=parseInt(r[2],10);this.rgba[3]=parseFloat(r[3])*255<<0};var r;e=r=__decorate([InnerClass(\\"Color\\")],e);return e}();var colorNames={aliceblue:\\"#f0f8ff\\",antiquewhite:\\"#faebd7\\",aqua:\\"#00ffff\\",aquamarine:\\"#7fffd4\\",azure:\\"#f0ffff\\",beige:\\"#f5f5dc\\",bisque:\\"#ffe4c4\\",black:\\"#000000\\",blanchedalmond:\\"#ffebcd\\",blue:\\"#0000ff\\",blueviolet:\\"#8a2be2\\",brown:\\"#a52a2a\\",burlywood:\\"#deb887\\",cadetblue:\\"#5f9ea0\\",chartreuse:\\"#7fff00\\",chocolate:\\"#d2691e\\",coral:\\"#ff7f50\\",cornflowerblue:\\"#6495ed\\",cornsilk:\\"#fff8dc\\",crimson:\\"#dc143c\\",cyan:\\"#00ffff\\",darkblue:\\"#00008b\\",darkcyan:\\"#008b8b\\",darkgoldenrod:\\"#b8860b\\",darkgray:\\"#a9a9a9\\",darkgreen:\\"#006400\\",darkkhaki:\\"#bdb76b\\",darkmagenta:\\"#8b008b\\",darkolivegreen:\\"#556b2f\\",darkorange:\\"#ff8c00\\",darkorchid:\\"#9932cc\\",darkred:\\"#8b0000\\",darksalmon:\\"#e9967a\\",darkseagreen:\\"#8fbc8f\\",darkslateblue:\\"#483d8b\\",darkslategray:\\"#2f4f4f\\",darkturquoise:\\"#00ced1\\",darkviolet:\\"#9400d3\\",deeppink:\\"#ff1493\\",deepskyblue:\\"#00bfff\\",dimgray:\\"#696969\\",dodgerblue:\\"#1e90ff\\",firebrick:\\"#b22222\\",floralwhite:\\"#fffaf0\\",forestgreen:\\"#228b22\\",fuchsia:\\"#ff00ff\\",gainsboro:\\"#dcdcdc\\",ghostwhite:\\"#f8f8ff\\",gold:\\"#ffd700\\",goldenrod:\\"#daa520\\",gray:\\"#808080\\",green:\\"#008000\\",greenyellow:\\"#adff2f\\",honeydew:\\"#f0fff0\\",hotpink:\\"#ff69b4\\",indianred:\\"#cd5c5c\\",indigo:\\"#4b0082\\",ivory:\\"#fffff0\\",khaki:\\"#f0e68c\\",lavender:\\"#e6e6fa\\",lavenderblush:\\"#fff0f5\\",lawngreen:\\"#7cfc00\\",lemonchiffon:\\"#fffacd\\",lightblue:\\"#add8e6\\",lightcoral:\\"#f08080\\",lightcyan:\\"#e0ffff\\",lightgoldenrodyellow:\\"#fafad2\\",lightgrey:\\"#d3d3d3\\",lightgreen:\\"#90ee90\\",lightpink:\\"#ffb6c1\\",lightsalmon:\\"#ffa07a\\",lightseagreen:\\"#20b2aa\\",lightskyblue:\\"#87cefa\\",lightslategray:\\"#778899\\",lightsteelblue:\\"#b0c4de\\",lightyellow:\\"#ffffe0\\",lime:\\"#00ff00\\",limegreen:\\"#32cd32\\",linen:\\"#faf0e6\\",magenta:\\"#ff00ff\\",maroon:\\"#800000\\",mediumaquamarine:\\"#66cdaa\\",mediumblue:\\"#0000cd\\",mediumorchid:\\"#ba55d3\\",mediumpurple:\\"#9370d8\\",mediumseagreen:\\"#3cb371\\",mediumslateblue:\\"#7b68ee\\",mediumspringgreen:\\"#00fa9a\\",mediumturquoise:\\"#48d1cc\\",mediumvioletred:\\"#c71585\\",midnightblue:\\"#191970\\",mintcream:\\"#f5fffa\\",mistyrose:\\"#ffe4e1\\",moccasin:\\"#ffe4b5\\",navajowhite:\\"#ffdead\\",navy:\\"#000080\\",oldlace:\\"#fdf5e6\\",olive:\\"#808000\\",olivedrab:\\"#6b8e23\\",orange:\\"#ffa500\\",orangered:\\"#ff4500\\",orchid:\\"#da70d6\\",palegoldenrod:\\"#eee8aa\\",palegreen:\\"#98fb98\\",paleturquoise:\\"#afeeee\\",palevioletred:\\"#d87093\\",papayawhip:\\"#ffefd5\\",peachpuff:\\"#ffdab9\\",peru:\\"#cd853f\\",pink:\\"#ffc0cb\\",plum:\\"#dda0dd\\",powderblue:\\"#b0e0e6\\",purple:\\"#800080\\",rebeccapurple:\\"#663399\\",red:\\"#ff0000\\",rosybrown:\\"#bc8f8f\\",royalblue:\\"#4169e1\\",saddlebrown:\\"#8b4513\\",salmon:\\"#fa8072\\",sandybrown:\\"#f4a460\\",seagreen:\\"#2e8b57\\",seashell:\\"#fff5ee\\",sienna:\\"#a0522d\\",silver:\\"#c0c0c0\\",skyblue:\\"#87ceeb\\",slateblue:\\"#6a5acd\\",slategray:\\"#708090\\",snow:\\"#fffafa\\",springgreen:\\"#00ff7f\\",steelblue:\\"#4682b4\\",tan:\\"#d2b48c\\",teal:\\"#008080\\",thistle:\\"#d8bfd8\\",tomato:\\"#ff6347\\",turquoise:\\"#40e0d0\\",violet:\\"#ee82ee\\",wheat:\\"#f5deb3\\",white:\\"#ffffff\\",whitesmoke:\\"#f5f5f5\\",yellow:\\"#ffff00\\",yellowgreen:\\"#9acd32\\"};var NebulaLabelFormat$1=function(t){__extends(e,t);function e(e){var r=t.call(this)||this;r.bt=20;r.WW=20;r._opts={};r.uA={};r.fff=1;r.vn=e.vn;return r}e.prototype.Ns=function(e,r){if(r.lang){this.lang=r.lang}this._opts=r;this.bt=r.zoom;this.WW=r.ZL;return this.rV(e,r.R_)};e.prototype.rV=function(e,r){var t=e.data||{};var i=t.poilabel||[];var a={};var n=e.cQ;for(var o in i){if(i.hasOwnProperty(o)){var f=this.nV(i[o],{aV:e.zo.z<10,cQ:n,R_:r});a[o]=f}}var s=t.roadName||[];var u=this.oV(s,{R_:r});a.eA=u;return a};e.prototype.nV=function(O,e){if(e===void 0){e={}}var r=CONSTS.Lj,B=r.file,D=r.size;var U=CONSTS.Mp,N=CONSTS.Rp,H=CONSTS.Pp,z=CONSTS.jp;var G=this._opts.scale;var j=e.aV,t=e.cQ;var V=this.bt;var W=[];var q=\\"https\\";var i;var Y;var Z;var a;var K;var n;var X;var o;var f;var s;var u;var l;var v;var c;var h;var J;var Q;var ee;var re;var d;var _;var g;var y;var m;var te;var p;var b;var ie=this.lang;var ae=!t&&V>=5;for(var x=0,ne=O;x<ne.length;x++){var C=ne[x];i=C.cw;Y=C.ew;Z=C.pos;b=labelsUtil$2.tQ(C,ie,ae?e.R_:undefined);a=b.name;if(C.Wt&&C.Wt===\\"oversea\\"){if(!a){continue}}p=b.$G||[];K=C.rank;n=C.minzoom||U;X=j?zoomRange[1]:C.maxzoom||N;o=C.Fp;f=C.Ep;console.log();if(n===3){n=2}if(o===10002&&f===28){continue}s=this.oA(o,f,this.WW);if(!s){continue}u=G>1||s.fontSize>9?s.fontSize:9;h=s.sn;J=s.Qe;Q=s.forceShow;ee=s.zIndex;re=s.zooms;d=labelsUtil$2.Jj([n,zoomRange[1]],re);if(!d){continue}d=labelsUtil$2.$p(d);var M=d[0];var S=[];var w={};while(M<=d[1]){var k=this.vn.dn(o,f,M);if(k&&k.iconID!==\\"0\\"){var T=k.iconID;if(S.indexOf(T)===-1){S.push(T);w[T]=[]}w[T].push(M)}M++}if((o!==10002||f!==20&&f!==18)&&u>16){u=15}var A=[d[0]-H,d[1]+z];if(o===10002&&(f===13||f===18)&&A[0]<=3){A[0]=2.5}_=h&&q+B[h];g={data:{id:i?i+f:\\"\\",position:Z,name:a,txt:a,rank:K,BG:b.type,extData:{Lp:o,Ap:f,id:i,type:\\"poi\\",bz:Y}},opts:{type:\\"billboard\\",angle:0,forceShow:Q,zIndex:ee,visible:true,zooms:A}};y=s.nn||0;m=s.an||0;var I=[];var $=void 0;var F=[0,0];var P=void 0;for(var L=0;L<S.length;L++){var T=S[L];var oe=h&&this.aA(parseInt(T,10));var fe=[0,0];var se=D;var E=labelsUtil$2.$p(w[T]);var ue=1;if(a&&(T===\\"152\\"||T===\\"153\\"||T===\\"154\\")){ue=a.length<=2?1:a.length/2}P=vector$3.Up(se,2);if(_){I.push({type:\\"image\\",image:_,clipOrigin:vector$3.add(oe,fe),clipSize:se,size:[P[0]*ue,P[1]],anchor:[10-y*20/24,10-m*20/24],angle:0,qq:true,zooms:[E[0]-H,E[E.length-1]+z]})}}if(a){if(a===\\"曾母暗沙\\"){$=\\"top\\";F=[0,5]}else if(I.length&&I[0].image){var T=S[0];if(t){$=\\"bottom\\";F=[0,0]}if(a===\\"北京\\"){$=\\"top\\";F=[0,3]}else if(a===\\"澳门\\"){$=\\"left\\";F=[0,-2]}else if(a===\\"合肥\\"){$=\\"bottom\\";F=[0,-3]}else if(a===\\"太原\\"){$=\\"bottom\\";F=[0,-3]}else if(a===\\"西安\\"){$=\\"bottom\\";F=[0,-3]}else if(a===\\"郑州\\"){$=\\"bottom\\";F=[0,-3]}else if(a===\\"杭州\\"){$=\\"bottom\\";F=[0,-3]}else if(a===\\"台北\\"){$=\\"bottom\\";F=[0,-3]}else if(a===\\"加德满都\\"){$=\\"bottom\\";F=[0,-3]}else if(o===10002&&(f===31||f===32||f===34||f===5)){$=\\"right\\";F=[-3,-3]}else if(J===1){$=\\"right\\";F=[0,-2]}else if(T===\\"152\\"||T===\\"153\\"||T===\\"154\\"){$=\\"center\\";F=[0,-1]}else{$=\\"right\\";F=[0,-2]}}else{$=\\"center\\";F=[y,m]}}var le=\\"\\"+o+f;var R=this.uA[le];if(R){l=R.faceColor;v=R.borderColor;c=R.holoColor}else{l=s.faceColor&&Color$1.normalize(s.faceColor.rgba);v=s.borderColor&&Color$1.normalize(s.borderColor.rgba);c=s.Qe===3?s.holoColor&&Color$1.normalize(s.holoColor.rgba):null;this.uA[le]={faceColor:l,borderColor:v,holoColor:c}}te=a?{direction:$,offset:F,$G:p,style:{fontSize:u,strokeWidth:2,padding:[0,1,0,1],fold:!t&&V>=5}}:{};if(g.opts){g.opts.icon=I;g.opts.text=te}if(_){this.Fs[_]=1}if(a){this.Ws(a,p)}W.push(g);s=null}return W};e.prototype.oV=function(e,r){if(r===void 0){r={}}var t=CONSTS.Lj,i=t.file,a=t.size;var n=CONSTS.Mp,o=CONSTS.Rp,f=CONSTS.Pp,s=CONSTS.jp;var u=[];var l=this._opts.scale;var v=this.lang;var c=r&&r.R_&&r.R_[\\"protocol\\"]||\\"https\\";var h;var d;var _;var g;var y;var m;var p;var b;for(var x=0,C=e;x<C.length;x++){var M=C[x];_=M.path;g=M.rank;y=M.minzoom||n;m=M.maxzoom||o;p=M.shield;b=M.shieldType;var S=labelsUtil$2.tQ(M,v);h=S.name;d=S.$G;if(h){this.Ws(h,d)}if(!p){continue}var w=Math.floor(_.length/2);if(w<1){continue}var k=[_[w-1],_[w]];var T=40001;var A=b;var I=this.oA(T,A,this.WW);if(!I){continue}var $=l>1||I.fontSize>9?I.fontSize:9;var F=I.faceColor;var P=I.iconID;var L={data:{id:Util$3.stamp(this),position:k,positionType:\\"relative\\",name:h,txt:p,rank:g,BG:S.type,extData:{type:\\"shield\\",Lp:T,Ap:A}},opts:{type:\\"billboard\\",angle:0,zooms:[y-f,m+s],visible:true}};var E=[0,0];var O=\\"center\\";var B=this.aA(parseInt(P,10));var R=p.length/4>1?p.length/4:1;R=l>1?R:R*9/7;var D=c+i[\\"0\\"];var U={type:\\"image\\",image:D,clipOrigin:B,clipSize:a,size:[24*R,24],anchor:\\"center\\",angle:0,qq:true};var N=p?{direction:O,offset:E,style:{fontSize:$,fillColor:F&&Color$1.normalize(F.rgba),strokeWidth:0,padding:[0,1,0,1]}}:{};if(L.opts){L.opts.text=N;L.opts.icon=[U]}if(p){this.Ws(p)}u.push(L)}return u};e.prototype.DQ=function(e,r){var t;var i=CONSTS.Mp,a=CONSTS.Rp,n=CONSTS.Pp,o=CONSTS.jp;var f=r.zoom;var s;var u;var l;var v;var c=0;var h;var d;var _;var g;var y;var m;var p;var b;var x;var C;var M;var S;var w=[];var k=this.lang;var T;for(var A=0,I=e;A<I.length;A++){var $=I[A];T=$.id;if(!T){this.fff+=1;T=$.hpt}_=labelsUtil$2.tQ($,k);s=_.name;g=_.$G||[];if(!s){continue}y=_.type;m=labelsUtil$2.EQ(s,g);p=labelsUtil$2.aQ(m);u=$.rank;l=$.Fp;v=$.Ep;c=$.distance||0;h=$.minzoom||i;d=$.maxzoom||a;b=this.vn.dn(l,v,f);x=b&&b[1]||{};C=x.fontSize;M=x.faceColor;S=x.borderColor;t=labelsUtil$2.$p([h,d]),h=t[0],d=t[1];d=d>=20?zoomRange[1]:d;if(s&&T&&C&&M){var F={id:T,positionType:\\"relative\\",name:s,$G:g,CO:p,rank:u,BG:y,distance:c,zooms:[h-n,d+o],path:$.path.length>0?$.path:undefined,style:{fontSize:C,fillColor:vector$3.Up(M.rgba,255),strokeColor:S&&vector$3.Up(S.rgba,255)},extData:{mainkey:l,subkey:v}};w.push(F)}}return w};e.prototype.aA=function(e){var r=CONSTS.Lj,t=r.Rj,i=t,a=r.size;var n=Math.floor(e/i);if(e%10===0){n=n-1}var o=e-i*n-1;var f=[o*a[0],n*a[1]];return f};e.prototype.oA=function(e,r,t){var i=[3,20];var a=this.vn.dn(e,r,t);var n=this.vn.mn(e,r);if(!a){var o=1;while(t-o>=i[0]||t+o<=i[1]){a=this.vn.dn(e,r,t-o);if(!a){a=this.vn.dn(e,r,t+o)}if(a){break}else{o++}}}if(a){a.zooms=n}return a};e.prototype.mN=function(e,r){var t=[0,0];if(e===\\"0\\"){switch(r){case\\"3\\":{t=[6,6];break}case\\"4\\":case\\"5\\":case\\"6\\":{t=[9,9];break}}}return t};e.prototype.TN=function(e,r,t){if(t===void 0){t=[0,0]}var i=t;if(e===\\"0\\"){switch(r){case\\"3\\":{i=[30,30];break}case\\"4\\":case\\"5\\":case\\"6\\":{i=[20,20];break}}}return i};e.id=StaticSourceID.nebulaLabel;return e}(LabelFormat);function quickselect(e,r,t,i,a){quickselectStep(e,r,t||0,i||e.length-1,a||defaultCompare)}function quickselectStep(e,r,t,i,a){while(i>t){if(i-t>600){var n=i-t+1;var o=r-t+1;var f=Math.log(n);var s=.5*Math.exp(2*f/3);var u=.5*Math.sqrt(f*s*(n-s)/n)*(o-n/2<0?-1:1);var l=Math.max(t,Math.floor(r-o*s/n+u));var v=Math.min(i,Math.floor(r+(n-o)*s/n+u));quickselectStep(e,r,l,v,a)}var c=e[r];var h=t;var d=i;swap(e,t,r);if(a(e[i],c)>0)swap(e,t,i);while(h<d){swap(e,h,d);h++;d--;while(a(e[h],c)<0)h++;while(a(e[d],c)>0)d--}if(a(e[t],c)===0)swap(e,t,d);else{d++;swap(e,d,i)}if(d<=r)t=d+1;if(r<=d)i=d-1}}function swap(e,r,t){var i=e[r];e[r]=e[t];e[t]=i}function defaultCompare(e,r){return e<r?-1:e>r?1:0}var quickselect$1=Object.freeze({__proto__:null,default:quickselect});var quickselect$2=getCjsExportFromNamespace(quickselect$1);var rbush_1=rbush$1;var default_1=rbush$1;function rbush$1(e,r){if(!(this instanceof rbush$1))return new rbush$1(e,r);this.Bc=Math.max(4,e||9);this.Wc=Math.max(2,Math.ceil(this.Bc*.4));if(r){this.Gc(r)}this.clear()}rbush$1.prototype={all:function(){return this.qc(this.data,[])},search:function(e){var r=this.data,t=[],i=this.Yc;if(!intersects(e,r))return t;var a=[],n,o,f,s;while(r){for(n=0,o=r.children.length;n<o;n++){f=r.children[n];s=r.Zc?i(f):f;if(intersects(e,s)){if(r.Zc)t.push(f);else if(contains(e,s))this.qc(f,t);else a.push(f)}}r=a.pop()}return t},Vc:function(e){var r=this.data,t=this.Yc;if(!intersects(e,r))return false;var i=[],a,n,o,f;while(r){for(a=0,n=r.children.length;a<n;a++){o=r.children[a];f=r.Zc?t(o):o;if(intersects(e,f)){if(r.Zc||contains(e,f))return true;i.push(o)}}r=i.pop()}return false},load:function(e){if(!(e&&e.length))return this;if(e.length<this.Wc){for(var r=0,t=e.length;r<t;r++){this.Xc(e[r])}return this}var i=this.Hc(e.slice(),0,e.length-1,0);if(!this.data.children.length){this.data=i}else if(this.data.height===i.height){this.Jc(this.data,i)}else{if(this.data.height<i.height){var a=this.data;this.data=i;i=a}this.Kc(i,this.data.height-i.height-1,true)}return this},Xc:function(e){if(e)this.Kc(e,this.data.height-1);return this},clear:function(){this.data=createNode([]);return this},remove:function(e,r){if(!e)return this;var t=this.data,i=this.Yc(e),a=[],n=[],o,f,s,u;while(t||a.length){if(!t){t=a.pop();f=a[a.length-1];o=n.pop();u=true}if(t.Zc){s=findItem(e,t.children,r);if(s!==-1){t.children.splice(s,1);a.push(t);this.Qc(a);return this}}if(!u&&!t.Zc&&contains(t,i)){a.push(t);n.push(o);o=0;f=t;t=t.children[0]}else if(f){o++;t=f.children[o];u=false}else t=null}return this},Yc:function(e){return e},tf:compareNodeMinX,if:compareNodeMinY,toJSON:function(){return this.data},ef:function(e){this.data=e;return this},qc:function(e,r){var t=[];while(e){if(e.Zc)r.push.apply(r,e.children);else t.push.apply(t,e.children);e=t.pop()}return r},Hc:function(e,r,t,i){var a=t-r+1,n=this.Bc,o;if(a<=n){o=createNode(e.slice(r,t+1));calcBBox(o,this.Yc);return o}if(!i){i=Math.ceil(Math.log(a)/Math.log(n));n=Math.ceil(a/Math.pow(n,i-1))}o=createNode([]);o.Zc=false;o.height=i;var f=Math.ceil(a/n),s=f*Math.ceil(Math.sqrt(n)),u,l,v,c;multiSelect(e,r,t,s,this.tf);for(u=r;u<=t;u+=s){v=Math.min(u+s-1,t);multiSelect(e,u,v,f,this.if);for(l=u;l<=v;l+=f){c=Math.min(l+f-1,v);o.children.push(this.Hc(e,l,c,i-1))}}calcBBox(o,this.Yc);return o},nf:function(e,r,t,i){var a,n,o,f,s,u,l,v;while(true){i.push(r);if(r.Zc||i.length-1===t)break;l=v=Infinity;for(a=0,n=r.children.length;a<n;a++){o=r.children[a];s=bboxArea(o);u=enlargedArea(e,o)-s;if(u<v){v=u;l=s<l?s:l;f=o}else if(u===v){if(s<l){l=s;f=o}}}r=f||r.children[0]}return r},Kc:function(e,r,t){var i=this.Yc,a=t?e:i(e),n=[];var o=this.nf(a,this.data,r,n);o.children.push(e);extend$1(o,a);while(r>=0){if(n[r].children.length>this.Bc){this.af(n,r);r--}else break}this.sf(a,n,r)},af:function(e,r){var t=e[r],i=t.children.length,a=this.Wc;this.rf(t,a,i);var n=this.hf(t,a,i);var o=createNode(t.children.splice(n,t.children.length-n));o.height=t.height;o.Zc=t.Zc;calcBBox(t,this.Yc);calcBBox(o,this.Yc);if(r)e[r-1].children.push(o);else this.Jc(t,o)},Jc:function(e,r){this.data=createNode([e,r]);this.data.height=e.height+1;this.data.Zc=false;calcBBox(this.data,this.Yc)},hf:function(e,r,t){var i,a,n,o,f,s,u,l;s=u=Infinity;for(i=r;i<=t-r;i++){a=distBBox(e,0,i,this.Yc);n=distBBox(e,i,t,this.Yc);o=intersectionArea(a,n);f=bboxArea(a)+bboxArea(n);if(o<s){s=o;l=i;u=f<u?f:u}else if(o===s){if(f<u){u=f;l=i}}}return l},rf:function(e,r,t){var i=e.Zc?this.tf:compareNodeMinX,a=e.Zc?this.if:compareNodeMinY,n=this.lf(e,r,t,i),o=this.lf(e,r,t,a);if(n<o)e.children.sort(i)},lf:function(e,r,t,i){e.children.sort(i);var a=this.Yc,n=distBBox(e,0,r,a),o=distBBox(e,t-r,t,a),f=bboxMargin(n)+bboxMargin(o),s,u;for(s=r;s<t-r;s++){u=e.children[s];extend$1(n,e.Zc?a(u):u);f+=bboxMargin(n)}for(s=t-r-1;s>=r;s--){u=e.children[s];extend$1(o,e.Zc?a(u):u);f+=bboxMargin(o)}return f},sf:function(e,r,t){for(var i=t;i>=0;i--){extend$1(r[i],e)}},Qc:function(e){for(var r=e.length-1,t;r>=0;r--){if(e[r].children.length===0){if(r>0){t=e[r-1].children;t.splice(t.indexOf(e[r]),1)}else this.clear()}else calcBBox(e[r],this.Yc)}},Gc:function(e){var r=[\\"return a\\",\\" - b\\",\\";\\"];this.tf=new Function(\\"a\\",\\"b\\",r.join(e[0]));this.if=new Function(\\"a\\",\\"b\\",r.join(e[1]));this.Yc=new Function(\\"a\\",\\"return {minX: a\\"+e[0]+\\", minY: a\\"+e[1]+\\", maxX: a\\"+e[2]+\\", maxY: a\\"+e[3]+\\"};\\")}};function findItem(e,r,t){if(!t)return r.indexOf(e);for(var i=0;i<r.length;i++){if(t(e,r[i]))return i}return-1}function calcBBox(e,r){distBBox(e,0,e.children.length,r,e)}function distBBox(e,r,t,i,a){if(!a)a=createNode(null);a.ja=Infinity;a.Fa=Infinity;a.Oa=-Infinity;a.Ea=-Infinity;for(var n=r,o;n<t;n++){o=e.children[n];extend$1(a,e.Zc?i(o):o)}return a}function extend$1(e,r){e.ja=Math.min(e.ja,r.ja);e.Fa=Math.min(e.Fa,r.Fa);e.Oa=Math.max(e.Oa,r.Oa);e.Ea=Math.max(e.Ea,r.Ea);return e}function compareNodeMinX(e,r){return e.ja-r.ja}function compareNodeMinY(e,r){return e.Fa-r.Fa}function bboxArea(e){return(e.Oa-e.ja)*(e.Ea-e.Fa)}function bboxMargin(e){return e.Oa-e.ja+(e.Ea-e.Fa)}function enlargedArea(e,r){return(Math.max(r.Oa,e.Oa)-Math.min(r.ja,e.ja))*(Math.max(r.Ea,e.Ea)-Math.min(r.Fa,e.Fa))}function intersectionArea(e,r){var t=Math.max(e.ja,r.ja),i=Math.max(e.Fa,r.Fa),a=Math.min(e.Oa,r.Oa),n=Math.min(e.Ea,r.Ea);return Math.max(0,a-t)*Math.max(0,n-i)}function contains(e,r){return e.ja<=r.ja&&e.Fa<=r.Fa&&r.Oa<=e.Oa&&r.Ea<=e.Ea}function intersects(e,r){return r.ja<=e.Oa&&r.Fa<=e.Ea&&r.Oa>=e.ja&&r.Ea>=e.Fa}function createNode(e){return{children:e,height:1,Zc:true,ja:Infinity,Fa:Infinity,Oa:-Infinity,Ea:-Infinity}}function multiSelect(e,r,t,i,a){var n=[r,t],o;while(n.length){t=n.pop();r=n.pop();if(t-r<=i)continue;o=r+Math.ceil((t-r)/i/2)*i;quickselect$2(e,o,r,t,a);n.push(r,o,o,t)}}rbush_1.default=default_1;var Status;(function(e){e[\\"loading\\"]=\\"loading\\";e[\\"loaded\\"]=\\"loaded\\"})(Status||(Status={}));var M$1;M$1=getModule();function getModule(){if(!M$1){M$1={nS:function(clsName,clsText){try{eval(clsText)}catch(e){throw e}},eS:{iS:\\"__detaiVersion__\\",BY:Browser.DW?false:config[13]}}}return M$1}var Module=getModule();function InnerClass(r){return function(e){getModule()[r]=e}}getModule()[\\"MapboxLabelFormat\\"]=MapboxLabelFormat$1;getModule()[\\"NebulaLabelFormat\\"]=NebulaLabelFormat$1;getModule()[\\"_LocalZoom\\"]={Ra:13,za:12,Ge:\\"\\"};getModule()[\\"Support\\"]=Browser;getModule()[\\"geo\\"]={lcs:lcs$2,ProjectionManager:ProjectionManager};getModule()[\\"transform\\"]=transform;getModule()[\\"Util\\"]=Util$3;getModule()[\\"TileState\\"]=TileState$1;getModule()[\\"assign\\"]=assign;getModule()[\\"labelsUtil\\"]=labelsUtil$2;getModule()[\\"LabelsRenderUtil\\"]=LabelsRenderUtil$3;getModule()[\\"vector\\"]=vector$3;getModule()[\\"rbush\\"]=rbush_1;getModule()[\\"lodash\\"]={map:map,find:find,assign:assign,every:every,some:some};var TileState$1;(function(e){e[\\"TOLOAD\\"]=\\"toload\\";e[\\"LOADING\\"]=\\"loading\\";e[\\"LOADED\\"]=\\"loaded\\";e[\\"UNLOADED\\"]=\\"unloaded\\";e[\\"ERROR\\"]=\\"error\\";e[\\"RELOADING\\"]=\\"reloading\\"})(TileState$1||(TileState$1={}));var TileCoord=function(){function e(e,r,t){this.x=r;this.y=t;this.z=e;this.key=e+\\",\\"+r+\\",\\"+t}a=e;e.prototype.s0=function(e){var r=e-this.z;var t=Math.floor(Math.pow(2,r)*this.x);var i=Math.floor(Math.pow(2,r)*this.y);return new a(e,t,i)};var a;e=a=__decorate([InnerClass(\\"TileCoord\\")],e);return e}();var Tile=function(){function e(e){this.type=\\"tile\\";this.Ro=[0,0,0,0];this.stamp=0;this.zo=e;this.status=TileState$1.TOLOAD;this._v=null;this.data={}}e.YH=function(e){return e.status===TileState$1.LOADED||e.status===TileState$1.RELOADING};e.prototype.destroy=function(){assert(true,\\"Tile should not implement destroy\\")};e.prototype.nG=function(e){this.type=e};e=__decorate([InnerClass(\\"Tile\\")],e);return e}();var NebulaTile=function(r){__extends(e,r);function e(){var e=r!==null&&r.apply(this,arguments)||this;e.type=\\"nebula\\";e.region=\\"world\\";e.aN=NebulaTagType.NONE;e.BN=NebulaTagType.NONE;return e}Object.defineProperty(e.prototype,\\"tag\\",{get:function(){return this.nN},set:function(e){this.aN=this.tag;this.nN=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,\\"gB\\",{get:function(){return this.VN},set:function(e){this.BN=this.gB;this.VN=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,\\"data\\",{get:function(){var e=[];if(this.qc&&this.qc.Dc){e.push(this.qc)}else{if(this.sN){e.push(this.sN)}if(this.uN){e.push(this.uN)}}if(this.lU&&this.lU.Dc){e.push(this.lU)}else{if(this.fU){e.push(this.fU)}if(this.cU){e.push(this.cU)}}if(this.zN&&this.zN.labels){e.push(this.zN)}else{if(this.HN){e.push(this.HN)}if(this.WN){e.push(this.WN)}}if(this.dU&&this.dU.labels){e.push(this.dU)}else{if(this.vU){e.push(this.vU)}if(this.gU){e.push(this.gU)}}return e},set:function(e){},enumerable:false,configurable:true});e.prototype.xa=function(e,r){if(r===void 0){r=NebulaTagType.ALL}if(!Object.keys(e)){return}switch(r){case NebulaTagType.LITE:{this.uN=__assign(__assign({},this.uN),e);break}case NebulaTagType.LEFT:{this.sN=__assign(__assign({},this.sN),e);break}case NebulaTagType.ALL:default:{this.qc=__assign(__assign({},this.qc),e)}}};e.prototype.JE=function(e,r){if(r===void 0){r=NebulaTagType.ALL}if(!Object.keys(e)){return}switch(r){case NebulaTagType.LITE:{this.cU=__assign(__assign({},this.cU),e);break}case NebulaTagType.LEFT:{this.fU=__assign(__assign({},this.fU),e);break}case NebulaTagType.ALL:default:{this.lU=__assign(__assign({},this.lU),e)}}};e.prototype.rO=function(e,r){if(r===void 0){r=NebulaTagType.ALL}if(!Object.keys(e)){return}switch(r){case NebulaTagType.LITE:{this.WN=__assign(__assign({},this.WN),e);break}case NebulaTagType.LEFT:{this.HN=__assign(__assign({},this.HN),e);break}case NebulaTagType.ALL:default:{this.zN=__assign(__assign({},this.zN),e)}}};e.prototype.qE=function(e,r){if(r===void 0){r=NebulaTagType.ALL}if(!Object.keys(e)){return}switch(r){case NebulaTagType.LITE:{this.gU=__assign(__assign({},this.gU),e);break}case NebulaTagType.LEFT:{this.vU=__assign(__assign({},this.vU),e);break}case NebulaTagType.ALL:default:{this.dU=__assign(__assign({},this.dU),e)}}};e.prototype.ID=function(e){if(e){if(e.uN){this.uN=e.uN}if(e.sN){this.sN=e.sN}if(e.qc){this.qc=e.qc}if(e.WN){this.WN=e.WN}if(e.HN){this.HN=e.HN}if(e.zN){this.zN=e.zN}}};e.prototype.rN=function(){if(this.aN){this.nN=this.aN}else{this.nN=NebulaTagType.NONE}if(this.BN){this.VN=this.BN;this.nN=NebulaTagType.NONE}};e.prototype.AB=function(){var e=[];if(this.qc&&this.qc.road&&this.zN&&this.zN.labels){e.push(this.qc)}else{if(this.sN&&this.sN.road&&this.HN&&this.HN.labels){e.push(this.sN)}if(this.uN&&this.uN.road&&this.WN&&this.WN.labels){e.push(this.uN)}}return e};e.prototype.LY=function(e,r){var t=this.data;for(var i=0,a=t;i<a.length;i++){var n=a[i];if(n.Dc){n.Dc.upload(e,true)}if(n.$c){n.$c.upload(e,true)}if(n.A_){n.A_.upload(e,true)}if(n.FD){n.FD.upload(e,true)}}};e.prototype.destroy=function(){var e=this.data;if(!e){return}for(var r=0,t=e;r<t.length;r++){var i=t[r];if(i.Dc){i.Dc.destroy();delete i.Dc}if(i.$c){i.$c.destroy();delete i.$c}if(i.labels){for(var a=0,n=i.labels;a<n.length;a++){var o=n[a];o.destroy()}delete i.labels}i.Ta=false;delete i.gf}};e.prototype.KE=function(e){var r=this.data;var t;var i=[];for(var a=0,n=e;a<n.length;a++){var o=n[a];if(o.road){i.push(o.road)}}for(var f=0,s=r;f<s.length;f++){var o=s[f];if(o.XE){t=o.XE;this.pU(i,t)}}};e.prototype.reload=function(){delete this.lU;delete this.cU;delete this.fU;delete this.zN;delete this.WN;delete this.HN;delete this.VN;this.BN=NebulaTagType.NONE};e.prototype.pU=function(e,r){for(var t=0,i=r;t<i.length;t++){var a=i[t];var n=a.id;if(!a.path){for(var o=0,f=e;o<f.length;o++){var s=f[o];a.path=this.yU(s,n)}}else{break}}};e.prototype.yU=function(e,r){for(var t=0,i=e;t<i.length;t++){var a=i[t];if(a.id===r){return a.path}}};e.prototype.oN=function(){var e=false;var r=this.qc;var t=Object.keys(r||{});if(!t.length){e=false}else if(t.length===1&&t[0]===\\"sdfLoaded\\"){e=false}else{e=true}return e};e=__decorate([InnerClass(\\"NebulaTile\\")],e);return e}(Tile);var RasterTile=function(r){__extends(e,r);function e(){var e=r!==null&&r.apply(this,arguments)||this;e.type=\\"raster\\";return e}e.prototype.destroy=function(){var e=this.data;if(!e){return}if(e.texture){e.texture.destroy();delete e.texture}if(e.zs){e.zs.context.deleteBuffer(e.zs);delete e.zs}if(e.Js){e.Js.destroy();delete e.Js}};return e}(Tile);var VectorTile=function(r){__extends(e,r);function e(){var e=r!==null&&r.apply(this,arguments)||this;e.type=\\"vector\\";return e}e.prototype.destroy=function(){var e=this.data;if(!e){return}if(e.$c){e.$c.destroy();delete e.$c}if(e.Uc){delete e.Uc}};e=__decorate([InnerClass(\\"VectorTile\\")],e);return e}(Tile);var Support$3=M[\\"Support\\"];var scale$2=Support$3.scale;var MapboxVTRender=function(r){__extends(e,r);function e(){var e=r.call(this)||this;return e}e.prototype.renderFrame=function(e,r,t,i){this.vdt=e;var a=t.viewState.optimalZoom;if(a<i.zooms[0]||a>i.zooms[1]){return}if(i.ce){e.context.clear({depth:true})}var n=r.tiles;n.sort(function(e,r){return r.zo.z-e.zo.z});var o=i.layer[\\"getLabelsLayer\\"]();var f=n.every(function(e){return o.Ho.indexOf(e.zo.key)>-1});if(!f){o.Ho=[];o[\\"remove\\"](o[\\"getAllOverlays\\"]())}if(n&&n.length){e.context.clear({stencil:true});for(var s=0,u=n;s<u.length;s++){var l=u[s];if(l.status!==TileState$1.LOADED){continue}if(!f){this.pee(o,l.data.labels,l)}this.lH(e,l,t,1);this.Lc(e,l,t,i);this.Ac(e,l,t,i);this.Ic(e,l,t,i);this.Cb(e,l,t,i);this.lH(e,l,t,2)}for(var v=0,c=n;v<c.length;v++){var l=c[v];if(l.status!==TileState$1.LOADED){continue}this.S_(e,l,t,i,true)}for(var h=0,d=n;h<d.length;h++){var l=d[h];if(l.status!==TileState$1.LOADED){continue}this.S_(e,l,t,i)}}var _=t.map.getMask();this.PB(e,t,i,_)};e.prototype.pickRender=function(e,r,t){var i=this.vdt;if(!i){return}var a=i.context;var n=i.context.gl;var o=e.size[0]*scale$2;var f=e.size[1]*scale$2;var s=e.viewState.bounds.toString();var u=false;if(!this.bee){this.bee=this.IC(n,o,f,s);u=true}else if(o!==this.bee.w||f!==this.bee.h){this.xee(this.bee,n,o,f,s);u=true}else if(s!==this.bee.bounds){this.bee.bounds=s;u=true}if(u){a.bindFramebuffer.set(this.bee);a.be.set([0,0,o,f]);a.clear({color:true,stencil:true,depth:true});for(var l=0,v=t;l<v.length;l++){var c=v[l];if(c.status!==TileState$1.LOADED){continue}this.S_(i,c,e,r,false,true)}a.bindFramebuffer.set(null);a.setDirty()}return this.bee};e.prototype.destroy=function(){this[\\"clearPickFbo\\"]()};e.prototype[\\"clearPickFbo\\"]=function(){if(this.bee&&this.vdt){var e=this.vdt.context.gl;e.deleteTexture(this.bee.texture);e.deleteRenderbuffer(this.bee.AC);e.deleteFramebuffer(this.bee);delete this.bee}};e.prototype.Lc=function(e,r,t,i){var a=e.Wn();var n=r.data;var o=n.Dc;if(!o){return}o.upload(a.context,true);var f=o.zs;var s=o.Pc;var u=n.Oc;var l=i.opacity;var v=[r.Sa[0],r.Sa[1]];var c=1;if(t.viewState.viewMode===\\"3D\\"){c=t.map.getView().EF()}var h=r.zo.z;if(h<LocalZoom){var d=r.localCoord.center;v[0]+=d[0];v[1]+=d[1]}for(var _=0,g=u.jc;_<g.length;_++){var y=g[_];var m=y.mainkey.split(\\":\\")[0];m=m.split(\\",\\");m[3]*=l;var p={u_matrix:t.viewState.mvpMatrix,u_color:m,u_offset:[0,0],u_localDeltaCenter:v,u_viewHeight:t.viewState.size[1],u_skyHeight:c};if(p){a.context.getExtension(\\"OES_element_index_uint\\");a.Ce(p,{a_pos:{type:\\"vec2\\",Re:f.size,offset:0,buffer:f}},y.length,s,\\"TRIANGLES\\",i.depthTest,ColorMode.Si,StencilMode.iee,undefined,y.offset)}}};e.prototype.Ac=function(e,r,t,i){var a=e.Vn();if(!r.data){assert(r.data,\\"MapboxVT tile have no data\\");return}var n=r.data;var o=n.pX;if(!o){return}o.upload(a.context,true);var f=o.zs.buffer;var s=o.Pc.buffer;var u=n.Fc;if(!u){return}var l=u.jc;var v=[r.Sa[0],r.Sa[1]];var c=r.zo.z;if(c<LocalZoom){var h=r.localCoord.center;v[0]+=h[0];v[1]+=h[1]}var d=i.opacity;var _=1;if(t.viewState.viewMode===\\"3D\\"){_=t.map.getView().EF()}for(var g=0,y=l.length;g<y;g++){var m=l[g];var p=m.mainkey.split(\\":\\");var b=p[0].split(\\",\\");b[3]*=d;var x=p[1].split(\\",\\");var C=+p[2];var M={u_matrix:t.viewState.mvpMatrix,u_meter_per_pixel:t.viewState.resolution,u_color:b,u_border:0,u_width:C,u_dash:x,u_localDeltaCenter:v,u_skyHeight:_,u_viewHeight:t.viewState.size[1]};var S=f.size;a.context.getExtension(\\"OES_element_index_uint\\");a.Ce(M,{a_pos:{type:\\"vec2\\",buffer:f,Re:S,offset:4*0},a_normal:{type:\\"vec2\\",buffer:f,Re:S,offset:4*2},a_distance:{type:\\"float\\",buffer:f,Re:S,offset:4*4},a_dir:{type:\\"vec2\\",buffer:f,Re:S,offset:4*5}},m.length,s,\\"TRIANGLES\\",i.depthTest,ColorMode.Si,StencilMode.iee,undefined,m.offset)}};e.prototype.S_=function(e,r,t,i,a,n){if(a===void 0){a=false}if(n===void 0){n=false}var o=r.data;var f=o.A_;if(!f){return}f.upload(e.context,true);var s=t.map;var u=s.getView();var l=t.viewState.size;var v=1;if(t.viewState.viewMode===\\"3D\\"){v=u.EF()}else{return}var c=u.X(l[0]/2,u.Uu()+5);var h=u.X(l[0]/2,u.Uu()-5);var d=u.pz().getPosition();var _=c[0]-d[0];var g=c[1]-d[1];var y=h[0]-d[0];var m=h[1]-d[1];var p=[Math.sqrt(_*_+g*g),Math.sqrt(y*y+m*m)];var b=[r.Sa[0],r.Sa[1]];var x=r.zo.z;if(x<LocalZoom){var C=r.localCoord.center;b[0]+=C[0];b[1]+=C[1]}var M=f.zs;var S=o.w0;for(var w=0,k=S.jc;w<k.length;w++){var T=k[w];var A=T.roofColor;var I=T.wallColor;var $=!!T.bz;if(!$&&(!A||!I)){continue}var F=void 0;if(n){F=i.layer.colorPick.find(T.mainkey);if(!F){F=i.layer.colorPick.add(T.mainkey)}}if(n&&!F){continue}if($&&!n){var P=getFillExtPatternUniformValues(t,T,b,i,{wallColor:I,roofColor:A},v,p);if(P){var L=s.getImage(P.u_image);if(L){P.u_image=L;P.u_imageSize=L.size;var E=e.sH();E.Ce(P,{a_pos:{type:\\"vec4\\",Re:M.size,offset:0,buffer:M},a_normal:{type:\\"vec3\\",Re:M.size,offset:4*4,buffer:M},a_textureCoord:{type:\\"vec2\\",Re:M.size,offset:4*7,buffer:M}},T.length,undefined,\\"TRIANGLES\\",true,a?ColorMode.disabled:ColorMode.Si,a?StencilMode.disable:StencilMode.nee,CullFaceMode.back,T.offset)}else if(P.u_image&&s.I_&&!s.I_.MH(P.u_image)){s.addImage(P.u_image,{url:P.u_image,filter:\\"LINEAR\\",wrap:\\"REPEAT\\",cb:function(){return s.setNeedUpdate(true)}})}}}else{var P=getFillExtUniformValues(t,T,b,i,{wallColor:n?F:I,roofColor:n?F:A},v,p);if(P){P[\\"u_isPick\\"]=n;var E=e.k_();E.Ce(P,{a_pos:{type:\\"vec4\\",Re:M.size,offset:0,buffer:M},a_normal:{type:\\"vec3\\",Re:M.size,offset:4*4,buffer:M}},T.length,undefined,\\"TRIANGLES\\",true,a?ColorMode.disabled:ColorMode.Si,a?StencilMode.disable:StencilMode.nee,CullFaceMode.back,T.offset)}}}};e.prototype.Ic=function(e,r,t,i){var a=e.Vn();if(!r.data){assert(r.data,\\"MapboxVT tile have no data\\");return}var n=r.data;var o=n.$c;if(!o){return}o.upload(a.context,true);var f=o.zs.buffer;var s=o.Pc.buffer;var u=n.Uc;if(!u){return}var l=u.jc;var v=[r.Sa[0],r.Sa[1]];var c=r.zo.z;if(c<LocalZoom){var h=r.localCoord.center;v[0]+=h[0];v[1]+=h[1]}var d=i.opacity;var _=1;if(t.viewState.viewMode===\\"3D\\"){_=t.map.getView().EF()}for(var g=0,y=l.length;g<y;g++){var m=l[g];var p=m.mainkey.split(\\":\\"),b=p[0],x=p[1],C=p[2];b=b.split(\\",\\");b[3]*=d;C=C.split(\\",\\");x=+x;var M={u_matrix:t.viewState.mvpMatrix,u_meter_per_pixel:t.viewState.resolution,u_color:b,u_border:0,u_width:x,u_dash:C,u_localDeltaCenter:v,u_skyHeight:_,u_viewHeight:t.viewState.size[1]};var S=f.size;a.context.getExtension(\\"OES_element_index_uint\\");a.Ce(M,{a_pos:{type:\\"vec2\\",buffer:f,Re:S,offset:4*0},a_normal:{type:\\"vec2\\",buffer:f,Re:S,offset:4*2},a_distance:{type:\\"float\\",buffer:f,Re:S,offset:4*4},a_dir:{type:\\"vec2\\",buffer:f,Re:S,offset:4*5}},m.length,s,\\"TRIANGLES\\",i.depthTest,ColorMode.Si,StencilMode.iee,undefined,m.offset)}};e.prototype.Cb=function(e,r,t,i){var a=r.data;var n=a.dX;if(!n){return}var o=e.Cee();n.upload(o.context);var f=n.zs;var s=a.IX;if(!s){return}var u=1;if(t.viewState.viewMode===\\"3D\\"){u=t.map.getView().EF()}var l=[r.Sa[0],r.Sa[1]];var v=r.zo.z;if(v<LocalZoom){var c=r.localCoord.center;l[0]+=c[0];l[1]+=c[1]}var h=i.opacity;var d=s.jc;for(var _=0,g=d.length;_<g;_++){var y=d[_];var m={u_offset:[0,0],u_matrix:t.viewState.mvpMatrix,u_localDeltaCenter:l,u_skyHeight:u,u_viewHeight:t.viewState.size[1],u_retinaRatio:Support$3.Ue?2:1,u_opacity:h};o.Ce(m,{a_pos:{buffer:f,type:\\"vec2\\",Re:f.size,offset:0},a_radius:{buffer:f,type:\\"float\\",Re:f.size,offset:4*2},a_borderWidth:{buffer:f,type:\\"float\\",Re:f.size,offset:4*3},a_color:{buffer:f,type:\\"vec4\\",Re:f.size,offset:4*4},a_borderColor:{buffer:f,type:\\"vec4\\",Re:f.size,offset:4*8},a_visible:{buffer:f,type:\\"float\\",Re:f.size,offset:4*12}},y.length,undefined,\\"POINTS\\",i.depthTest,ColorMode.Si,StencilMode.iee,undefined,y.offset)}};e.prototype.lH=function(e,r,t,i){if(i===void 0){i=1}var a=e.Wn();var n=a.context;var o=new Float32Array(this.fH(r));var f=[r.Sa[0],r.Sa[1]];var s=n.fe(o,8);var u=r.zo.z;if(u<LocalZoom){var l=r.localCoord.center;f[0]+=l[0];f[1]+=l[1]}var v=[0,1,0,0];if(u===t.viewState.optimalZoom-1){v=[1,0,0,0]}var c={u_matrix:t.viewState.mvpMatrix,u_color:v,u_offset:[0,0],u_localDeltaCenter:f,u_viewHeight:t.viewState.size[1],u_skyHeight:1};a.Ce(c,{a_pos:{type:\\"vec2\\",buffer:s,Re:0,offset:0}},6,undefined,\\"TRIANGLES\\",false,ColorMode.Si,i===1?StencilMode.ree:StencilMode.aee,undefined,0)};e.prototype.PB=function(e,r,t,i){e.context.clear({stencil:true});if(i){var a=r.map.getLayerByClass(\\"AMap.MaskLayer\\");if(a){var n=r.uo.getData(a.co(),r.viewState,e.context);var o=a.getRender();if(n&&o){o.renderFrame(e,n,r,t)}}}};e.prototype.pee=function(e,r,t){if(!r){return}if(e.Ho&&e.Ho.indexOf(t.zo.key)>-1){return}var i=[];for(var a=0;a<r.length;a++){var n=r[a];var o=new AMap.LabelMarker(n);i.push(o)}e.add(i);e.Ho.push(t.zo.key)};e.prototype.IC=function(e,r,t,i){var a=e.createFramebuffer();a.w=r;a.h=t;a.bounds=i;var n=e.createTexture();a.texture=n;e.bindTexture(e.TEXTURE_2D,n);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,r,t,0,e.RGBA,e.UNSIGNED_BYTE,null);var o=e.createRenderbuffer();a.AC=o;e.bindRenderbuffer(e.RENDERBUFFER,o);e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_COMPONENT16,r,t);e.bindFramebuffer(e.FRAMEBUFFER,a);e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,n,0);e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,o);var f=e.checkFramebufferStatus(e.FRAMEBUFFER);if(e.FRAMEBUFFER_COMPLETE!==f){console.log(\\"Frame buffer object is incomplete: \\"+f.toString());return}e.bindFramebuffer(e.FRAMEBUFFER,null);e.bindTexture(e.TEXTURE_2D,null);e.bindRenderbuffer(e.RENDERBUFFER,null);return a};e.prototype.xee=function(e,r,t,i,a){e.w=t;e.h=i;e.bounds=a;r.bindTexture(r.TEXTURE_2D,e.texture);r.texImage2D(r.TEXTURE_2D,0,r.RGBA,t,i,0,r.RGBA,r.UNSIGNED_BYTE,null);r.bindRenderbuffer(r.RENDERBUFFER,e.AC);r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_COMPONENT16,t,i);r.bindTexture(r.TEXTURE_2D,null);r.bindRenderbuffer(r.RENDERBUFFER,null)};return e}(LayerRender);var Support$4=M[\\"Support\\"];var lcs$3=M[\\"geo\\"][\\"lcs\\"];var MaskLayerRender=function(r){__extends(e,r);function e(){var e=r.call(this)||this;e.SC=new Uint8Array(0);return e}e.prototype.EH=function(e,r){var t=r.map.coordToContainer([e[0],e[1]]);var i=Math.round(t[0]);var a=Math.round(t[1]);var n=r.size[0];var o=r.size[1];var f=((o-a)*n+i)*4+3;if(i<0||a<0||i>=n||a>=o){return false}if(this.SC[f]){return true}return false};e.prototype.renderFrame=function(e,r,t,i,a,n){var o=e.aS();var f=t.viewState;var s=f.centerCoord;var u=o.context;var l=[0,0];if(t.viewState.optimalZoom<LocalZoom){l=r.LS.center}else{var v=lcs$3.getLocalByCoord([s[0],s[1]]).center;l=[r.LS.center[0]-v[0],r.LS.center[1]-v[1]]}r.Dc.upload(o.context,true);var c={data:r,$i:o,viewState:f,Sa:l};this.RC(u,t,c);this.zC(u,c)};e.prototype.zC=function(e,r){var t=e.gl;var i=r.data.Dc.zs;var a=r.data.Dc.Pc;var n=r.data.Oc;var o=n.jc;for(var f=0,s=o.length;f<s;f++){var u=o[f];r.$i.Ce({u_color:[0,0,0,0],u_deltaCenter:r.Sa,u_mvpMatrix:r.viewState.mvpMatrix},{a_pos:{type:\\"vec2\\",buffer:i,Re:i.size,offset:0}},u.length,a,\\"TRIANGLES\\",undefined,ColorMode.zi,StencilMode.Ai,undefined,u.offset)}};e.prototype.RC=function(e,r,t){var i=e.gl;var a=r.size[0];var n=r.size[1];if(!this.CC){this.CC=this.IC(i,r)}i.bindFramebuffer(i.FRAMEBUFFER,this.CC);i.viewport(0,0,a,n);i.clear(i.COLOR_BUFFER_BIT);var o=t.data.Dc.zs;var f=t.data.Dc.Pc;var s=t.data.Oc;var u=s.jc;for(var l=0,v=u.length;l<v;l++){var c=u[l];t.$i.Ce({u_color:[1,0,0,1],u_deltaCenter:t.Sa,u_mvpMatrix:t.viewState.mvpMatrix},{a_pos:{type:\\"vec2\\",buffer:o,Re:o.size,offset:0}},c.length,f,\\"TRIANGLES\\",undefined,ColorMode.zi,undefined,c.offset)}var h=a*n*4;if(!this.SC||h!==this.SC.length){this.SC=new Uint8Array(h)}i.readPixels(0,0,a,n,i.RGBA,i.UNSIGNED_BYTE,this.SC);i.bindFramebuffer(i.FRAMEBUFFER,null);var d=Support$4.Ue?2:1;i.viewport(0,0,a*d,n*d)};e.prototype.IC=function(e,r){var t=e.createFramebuffer();var i=r.size[0];var a=r.size[1];var n=e.createRenderbuffer();t.AC=n;n.w=i;n.h=a;e.bindRenderbuffer(e.RENDERBUFFER,n);e.renderbufferStorage(e.RENDERBUFFER,e.RGBA4,i,a);e.bindFramebuffer(e.FRAMEBUFFER,t);e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.RENDERBUFFER,n);var o=e.checkFramebufferStatus(e.FRAMEBUFFER);if(e.FRAMEBUFFER_COMPLETE!==o){console.log(\\"Frame buffer object is incomplete: \\"+o.toString());return}e.bindFramebuffer(e.FRAMEBUFFER,null);e.bindRenderbuffer(e.RENDERBUFFER,null);return t};return e}(LayerRender);var lineFragmentString=\\"precision highp float;\\\\n\\\\nuniform vec4 u_color;\\\\n// uniform float u_opacity;\\\\nuniform vec4 u_dash;\\\\nuniform float u_border;\\\\nuniform float u_skyHeight;\\\\nuniform float u_viewHeight;\\\\n\\\\nvarying highp float v_distance;\\\\nvarying vec2 v_normal;\\\\nvarying float v_width;\\\\nvarying vec4 v_pos;\\\\n\\\\nvoid main() {\\\\n    float offset = mod(v_distance, u_dash.r + u_dash.g + u_dash.b + u_dash.a);\\\\n    if(offset>u_dash.r && offset < u_dash.r + u_dash.g){\\\\n        discard;\\\\n    }else if(offset> u_dash.r + u_dash.g + u_dash.b){\\\\n        discard;\\\\n    }\\\\n\\\\n    float startBlur = 0.0;\\\\n    float endBlur = 1.0;\\\\n    // float dist = length(v_normal) * 0.8;\\\\n\\\\n    // if(v_width < 4.0 && u_border == 1.0) {\\\\n    //     startBlur = 0.0;\\\\n    // } else {\\\\n    //     // 线主体\\\\n    //     if(v_width < 4.0 && u_border == 0.0) {\\\\n    //         startBlur = 0.0;\\\\n    //     } else {\\\\n    //         startBlur = 0.4;\\\\n    //     }\\\\n    // }\\\\n    // startBlur = clamp(0.0, 0.4, smoothstep(0.0, 4.0, v_width) - 0.6);\\\\n\\\\n    // startBlur = 0.0;\\\\n    // float opacity = 1.0 - smoothstep(startBlur, endBlur, dist);\\\\n    gl_FragColor = u_color;\\\\n    // gl_FragColor.a *= opacity;\\\\n\\\\n    // gl_FragColor = vec4(1, 0, 0, 1);\\\\n\\\\n\\\\n    // 雾化\\\\n    float y = v_pos.y / v_pos.w;\\\\n    float fogHeight = 2. / u_viewHeight * 30.;  // 10 像素高度作为模糊处理\\\\n    vec3 fogColor= vec3(0.9, 0.9, 0.9);\\\\n    if(u_skyHeight < 1.0 && y > 0.0) {\\\\n        // 片元颜色 = 物体颜色 * 雾化因子 + 雾的颜色 * （1 - 雾化因子）\\\\n        float fogFactor = smoothstep(u_skyHeight + fogHeight/2.0, u_skyHeight - fogHeight/2.0, y);\\\\n        // float fogFactor = smoothstep(u_skyHeight + fogHeight, u_skyHeight, y);\\\\n        // gl_FragColor.rgb = gl_FragColor.rgb * fogFactor + fogColor * (1.0 - fogFactor);\\\\n        gl_FragColor.a *= fogFactor;\\\\n    }\\\\n\\\\n    #ifdef OVERDRAW_INSPECTOR\\\\n        gl_FragColor = vec4(1.0);\\\\n    #endif\\\\n}\\\\n\\";var lineVertextString=\\"precision highp float;\\\\nattribute vec2 a_pos;\\\\nattribute vec2 a_normal;\\\\nattribute float a_distance;\\\\nattribute vec2 a_dir;\\\\n\\\\n// attribute vec4 a_color;\\\\n// attribute float a_width;\\\\n// attribute vec4 a_dash;\\\\n\\\\nuniform float u_meter_per_pixel;\\\\nuniform mat4 u_matrix;\\\\nuniform vec2 u_localDeltaCenter;\\\\nuniform float u_width;\\\\n\\\\nvarying float v_distance;\\\\nvarying vec2 v_normal;\\\\nvarying float v_width;\\\\nvarying vec4 v_pos;\\\\n\\\\n#define WORLD_SIZE 20037508.342789244\\\\n\\\\nvoid main(){\\\\n    float width = u_width + 0.0;\\\\n    float cosValue = dot(a_normal , a_dir);\\\\n    v_distance = a_distance/u_meter_per_pixel + (cosValue * width * 0.5);\\\\n\\\\n    vec2 pos=a_pos;\\\\n    pos.x+=u_localDeltaCenter.x;\\\\n    pos.y+=u_localDeltaCenter.y;\\\\n    gl_Position = u_matrix * vec4(pos + a_normal * width * u_meter_per_pixel * 0.5, 0, 1);\\\\n    v_normal = normalize(a_normal*sign(width*u_meter_per_pixel*.5));\\\\n    v_width = width;\\\\n    v_pos = gl_Position;\\\\n}\\";var ColorConstructor=M[\\"Color\\"];var lineUniforms={u_skyHeight:\\"float\\",u_viewHeight:\\"float\\",u_width:\\"float\\",u_border:\\"float\\",u_matrix:\\"mat4\\",u_meter_per_pixel:\\"float\\",u_color:\\"vec4\\",u_dash:\\"vec4\\",u_localDeltaCenter:\\"vec2\\"};var lineAttributes={a_pos:{Oe:\\"vec2\\",Me:\\"float32\\"},a_normal:{Oe:\\"vec2\\",Me:\\"float32\\"},a_distance:{Oe:\\"float\\",Me:\\"float32\\"},a_dir:{Oe:\\"vec2\\",Me:\\"float32\\"}};var linePropertys={roadColor:new LineProperty(\\"roadColor\\",\\"linear\\"),roadWidth:new LineProperty(\\"roadWidth\\",\\"linear\\"),roadDash:new LineProperty(\\"roadDash\\",\\"const\\"),borderColor:new LineBorderProperty(\\"borderColor\\",\\"linear\\"),borderWidth:new LineBorderProperty(\\"borderWidth\\",\\"linear\\"),borderDash:new LineBorderProperty(\\"borderDash\\",\\"const\\")};var line={uniforms:lineUniforms,attributes:lineAttributes,vertexSource:lineVertextString,fragmentSource:lineFragmentString};var getLineUniformValues=function(e,r,t,i,a,n){if(i===void 0){i=[0,0]}var o=r.minzoom;var f=r.maxzoom;var s=e.viewState.zoom;if(o-.2>s&&o>3||f+.8<s&&f<18){return}var u=r.mainkey;var l=r.subkey;if(t){return getLineBorderUniformValues(e,r,i,a,n)}else{return getLineFaceUniformValues(e,r,i,a,n)}};function getLineBorderUniformValues(e,r,t,i,a){if(t===void 0){t=[0,0]}var n=e.map.bZ.MZ.drawMode===\\"fast\\"?e.viewState.optimalZoom:e.viewState.zoom;var o=r.mainkey,f=r.subkey,s=r.minzoom;var u=linePropertys.borderColor.An(i,o,f,n,s);if(!u){return undefined}var l=e.map.bZ.MZ.KY;if(l&&o===l.Lp&&l.Ap.indexOf(f)>-1){u=ColorConstructor.FV(u,l.NY)}var v=linePropertys.roadWidth.An(i,o,f,n,s)+linePropertys.borderWidth.An(i,o,f,n,s);var c=linePropertys.borderDash.An(i,o,f,n,s)||[1,0,1,0];return{u_skyHeight:a,u_matrix:e.viewState.mvpMatrix,u_meter_per_pixel:e.viewState.resolution,u_width:v,u_border:1,u_color:u,u_dash:c,u_localDeltaCenter:t,u_viewHeight:e.size[1]}}function getLineFaceUniformValues(e,r,t,i,a){if(t===void 0){t=[0,0]}var n=e.map.bZ.MZ.drawMode===\\"fast\\"?e.viewState.optimalZoom:e.viewState.zoom;var o=r.mainkey,f=r.subkey,s=r.minzoom,u=r.maxzoom;var l=linePropertys.roadColor.An(i,o,f,n,s);if(f<0&&o<0){l=[1,0,0,e.debug?1:0]}if(!l){return undefined}var v=e.map.bZ.MZ.KY;if(v&&o===v.Lp&&v.Ap.indexOf(f)>-1){l=ColorConstructor.FV(l,v.NY)}var c=linePropertys.roadWidth.An(i,o,f,n,s);var h=linePropertys.roadDash.An(i,o,f,n,s)||[1,0,1,0];return{u_matrix:e.viewState.mvpMatrix,u_meter_per_pixel:e.viewState.resolution,u_width:c,u_color:l,u_dash:h,u_border:0,u_localDeltaCenter:t,u_viewHeight:e.size[1],u_skyHeight:a}}var fillFragmentString=\\"precision highp float;\\\\nuniform vec4 u_color;\\\\n// uniform float u_opacity;\\\\nuniform float u_skyHeight;\\\\nuniform float u_viewHeight;  // 地图容器高度，单位像素\\\\nuniform vec3 u_skyColor;\\\\nvarying vec4 v_pos;\\\\n\\\\nvoid main() {\\\\n    gl_FragColor = u_color;\\\\n    // gl_FragColor = v_color;\\\\n    // gl_FragColor = vec4(0,0,1.0,1.0);\\\\n    // return;\\\\n\\\\n    // 雾化\\\\n    float y = v_pos.y / v_pos.w;\\\\n    float fogHeight = 2. / u_viewHeight * 30.;  // 10 像素高度作为模糊处理\\\\n    vec3 fogColor= vec3(0.9, 0.9, 0.9);\\\\n    if(u_skyHeight < 1.0 && y > 0.0) {\\\\n        float fogFactor = smoothstep(u_skyHeight + fogHeight/2.0, u_skyHeight - fogHeight/2.0, y);\\\\n        // float fogFactor = smoothstep(u_skyHeight + fogHeight, u_skyHeight, y);\\\\n        // gl_FragColor.rgb = gl_FragColor.rgb * fogFactor + fogColor * (1.0 - fogFactor);\\\\n        gl_FragColor.a *= fogFactor;\\\\n    }\\\\n    #ifdef OVERDRAW_INSPECTOR\\\\n        gl_FragColor = vec4(1.0);\\\\n    #endif\\\\n}\\\\n\\\\n\\";var fillVertextString=\\"precision highp float;\\\\nattribute vec2 a_pos;\\\\nuniform mat4 u_matrix;\\\\nuniform vec2 u_localDeltaCenter;\\\\nuniform vec2 u_offset;\\\\nvarying vec4 v_pos;\\\\n\\\\nvoid main() {\\\\n    vec2 pos = vec2(a_pos.x+u_localDeltaCenter.x+u_offset.x,a_pos.y+u_localDeltaCenter.y+u_offset.y);\\\\n    gl_Position = u_matrix * vec4(pos, 0, 1);\\\\n    v_pos = gl_Position;\\\\n}\\\\n\\";var fillPatternFragmentString=\\"precision highp float;\\\\n#define GLSLIFY 1\\\\nuniform vec4 u_color;\\\\nuniform sampler2D u_image;\\\\n// uniform float u_opacity;\\\\nuniform float u_skyHeight;\\\\nuniform float u_viewHeight;  // 地图容器高度，单位像素\\\\nuniform float u_resolution;\\\\nuniform vec2 u_imageSize;\\\\nvarying vec4 v_pos;\\\\nvarying vec2 v_coord;\\\\n// varying vec2 v_texture_pos;\\\\n\\\\nfloat fogcalc(vec4 pos, float skyHeight, float viewHeight) {\\\\n    float y = pos.y / pos.w;\\\\n    float fogHeight = 2. / viewHeight * 30.;\\\\n    float fogFactor = 1.0;\\\\n    if(skyHeight < 1.0 && y > 0.0) {\\\\n        fogFactor = smoothstep(skyHeight + fogHeight/2.0, skyHeight - fogHeight/2.0, y);\\\\n    }\\\\n    return fogFactor;\\\\n}\\\\n\\\\nvoid main() {\\\\n    vec2 v_texture_pos = mod(vec2(v_coord.x,v_coord.y*-1.0)/u_resolution/u_imageSize,1.0);\\\\n    gl_FragColor = texture2D(u_image, v_texture_pos);\\\\n    // gl_FragColor = vec4(1.0,0,0,1.0);\\\\n   \\\\n    float y = v_pos.y / v_pos.w;\\\\n    if(u_skyHeight > 0.0 && y > u_skyHeight) {\\\\n        gl_FragColor.a = 1.0 - smoothstep(u_skyHeight, 1.0, y);\\\\n    }\\\\n    gl_FragColor.a *= fogcalc(v_pos, u_skyHeight, u_viewHeight);\\\\n    #ifdef OVERDRAW_INSPECTOR\\\\n        gl_FragColor = vec4(1.0);\\\\n    #endif\\\\n}\\\\n\\";var fillPatternVertextString=\\"precision highp float;\\\\n#define GLSLIFY 1\\\\nattribute vec2 a_pos;\\\\nuniform mat4 u_matrix;\\\\nuniform vec2 u_localDeltaCenter;\\\\nuniform float u_resolution;\\\\nuniform vec2 u_offset;\\\\nvarying vec4 v_pos;\\\\nvarying vec2 v_coord;\\\\n\\\\n// varying vec2 v_texture_pos;\\\\nvoid main(){\\\\n    vec2 pos = vec2(a_pos.x+u_localDeltaCenter.x+u_offset.x,a_pos.y+u_localDeltaCenter.y+u_offset.y);\\\\n    gl_Position = u_matrix * vec4(pos, 0, 1);\\\\n    v_pos = gl_Position;\\\\n    v_coord = pos;\\\\n}\\\\n\\";var fillUniforms={u_skyColor:\\"vec3\\",u_color:\\"vec4\\",u_skyHeight:\\"float\\",u_viewHeight:\\"float\\",u_offset:\\"vec2\\",u_matrix:\\"mat4\\",u_localDeltaCenter:\\"vec2\\"};var fillAttributes={a_pos:{Me:\\"float32\\",Oe:\\"vec2\\"}};var fill={uniforms:fillUniforms,attributes:fillAttributes,vertexSource:fillVertextString,fragmentSource:fillFragmentString};var fillProperties={faceColor:new FillProperty(\\"faceColor\\",\\"linear\\"),borderWidth:new FillProperty(\\"borderWidth\\",\\"linear\\"),borderColor:new FillProperty(\\"borderColor\\",\\"linear\\"),texture:new FillProperty(\\"texture\\",\\"const\\")};var ColorConstructor$1=M[\\"Color\\"];var getFillUniformValues=function(e,r,t,i,a){if(t===void 0){t=[0,0]}if(a===void 0){a=1}var n=e.map.bZ.MZ.drawMode===\\"fast\\"?e.viewState.optimalZoom:e.viewState.zoom;if(r.minzoom-.2>e.viewState.zoom&&r.minzoom>3){return}var o=r.mainkey,f=r.subkey,s=r.minzoom;var u=fillProperties.faceColor.An(i,o,f,n,s);if(!u){return undefined}var l=e.map;var v=e.map.bZ.MZ.KY;if(v&&o===v.Lp&&v.Ap.indexOf(f)>-1){u=ColorConstructor$1.FV(u,v.NY)}var c=l.JF(e.viewState.optimalZoom);return{u_matrix:e.viewState.mvpMatrix,u_color:u,u_offset:[0,0],u_skyHeight:a,u_viewHeight:e.viewState.size[1],u_skyColor:c||[1,1,1,0],u_image:fillProperties.texture.An(i,o,f,n,s),u_imageSize:[1,1],u_localDeltaCenter:t,u_resolution:e.viewState.optimalResolution}};var getFillPatternUniformValues=function(e,r,t,i,a){if(t===void 0){t=[0,0]}if(a===void 0){a=1}var n=e.viewState.zoom;if(r.minzoom-.2>e.viewState.zoom&&r.minzoom>3){return}var o=r.mainkey,f=r.subkey,s=r.minzoom;var u=fillProperties.faceColor.An(i,o,f,n,s);var l=e.map;var v=l.JF(e.viewState.optimalZoom);if(!u){return undefined}return{u_matrix:e.viewState.mvpMatrix,u_color:u,u_offset:[0,0],u_skyHeight:a,u_viewHeight:e.viewState.size[1],u_skyColor:v||[1,1,1,0],u_image:fillProperties.texture.An(i,o,f,n,s),u_imageSize:[1,1],u_localDeltaCenter:t,u_resolution:e.viewState.optimalResolution}};var fillPatternUniforms={u_color:\\"vec4\\",u_skyColor:\\"vec4\\",u_viewHeight:\\"float\\",u_skyHeight:\\"float\\",u_offset:\\"vec2\\",u_matrix:\\"mat4\\",u_localDeltaCenter:\\"vec2\\",u_image:\\"sampler2D\\",u_resolution:\\"float\\",u_imageSize:\\"vec2\\"};var fillPatternAttributes={a_pos:{Me:\\"float32\\",Oe:\\"vec2\\"}};var fillPattern={uniforms:fillPatternUniforms,attributes:fillPatternAttributes,vertexSource:fillPatternVertextString,fragmentSource:fillPatternFragmentString};function drawFillPattern(e,r,t,i,a,n,o,f,s,u,l){if(n===void 0){n=\\"TRIANGLES\\"}if(o===void 0){o=false}if(f===void 0){f=ColorMode.Mi}if(s===void 0){s=StencilMode.disable}if(u===void 0){u=CullFaceMode.we}if(l===void 0){l=0}var v=e.aH();v.Ce(r,t,i,a,n,o,f,s,u,l)}var lineFragmentString$1=\\"precision mediump float;\\\\nuniform vec4 u_color;\\\\nvarying vec4 v_pos;\\\\n// uniform float u_opacity;\\\\nuniform float u_skyHeight;\\\\nuniform float u_viewHeight;  // 地图容器高度，单位像素\\\\n\\\\nvoid main(){\\\\n    // float dist=length(v_pos-gl_FragCoord.xy);\\\\n    // float alpha=1.-smoothstep(0.,1.,dist);\\\\n    gl_FragColor=u_color;\\\\n    // gl_FragColor=vec4(0.8, 0.8, 0.8, 0.5);\\\\n    // 雾化\\\\n    float y = v_pos.y / v_pos.w;\\\\n    float fogHeight = 2. / u_viewHeight * 30.;  // 10 像素高度作为模糊处理\\\\n    vec3 fogColor= vec3(0.9, 0.9, 0.9);\\\\n    if(u_skyHeight < 1.0 && y > 0.0) {\\\\n        float fogFactor = smoothstep(u_skyHeight + fogHeight/2.0, u_skyHeight - fogHeight/2.0, y);\\\\n        // float fogFactor = smoothstep(u_skyHeight + fogHeight, u_skyHeight, y);\\\\n        // gl_FragColor.rgb = gl_FragColor.rgb * fogFactor + fogColor * (1.0 - fogFactor);\\\\n        gl_FragColor.a *= fogFactor;\\\\n    }\\\\n    #ifdef OVERDRAW_INSPECTOR\\\\n    gl_FragColor=vec4(1.);\\\\n    #endif\\\\n}\\\\n\\";var lineVertextString$1=\\"precision highp float;\\\\nattribute vec2 a_pos;\\\\n\\\\nuniform mat4 u_matrix;\\\\nuniform vec2 u_localDeltaCenter;\\\\n\\\\nvarying vec4 v_pos;\\\\n\\\\nvoid main(){\\\\n    vec2 pos=vec2(a_pos.x+u_localDeltaCenter.x,a_pos.y+u_localDeltaCenter.y);\\\\n    gl_Position=u_matrix*vec4(pos,0,1);\\\\n    v_pos=gl_Position;\\\\n}\\\\n\\";var fillOutlineUniforms={u_color:\\"vec4\\",u_normal:\\"vec3\\",u_matrix:\\"mat4\\",u_localDeltaCenter:\\"vec2\\",u_skyHeight:\\"float\\",u_viewHeight:\\"float\\"};var fillOutlineAttributes={a_pos:{Oe:\\"vec2\\",Me:\\"float32\\"}};var fillOutline={uniforms:fillOutlineUniforms,attributes:fillOutlineAttributes,vertexSource:lineVertextString$1,fragmentSource:lineFragmentString$1};var fillOutlineProperties={faceColor:new BuildingProperty(\\"faceColor\\",\\"linear\\"),borderWidth:new BuildingBorderProperty(\\"borderWidth\\",\\"const\\"),borderColor:new BuildingBorderProperty(\\"borderColor\\",\\"linear\\"),wallColor1:new BuildingProperty(\\"wallColor1\\",\\"linear\\"),wallColor2:new BuildingProperty(\\"wallColor2\\",\\"linear\\")};var getFillOutlineUniformValues=function(e,r,t,i,a){if(a===void 0){a=1}var n=e.map.bZ.MZ.drawMode===\\"fast\\"?e.viewState.optimalZoom:e.viewState.zoom;if(r.minzoom-.5>e.viewState.zoom&&r.minzoom>3){return}var o=r.mainkey,f=r.subkey,s=r.minzoom;var u=fillOutlineProperties.borderColor.An(i,o,f,n,s);if(!u){return undefined}return{u_color:u,u_normal:[0,0,-.1],u_matrix:e.viewState.mvpMatrix,u_localDeltaCenter:t,u_skyHeight:a,u_viewHeight:e.viewState.size[1]}};var Tile$1=M[\\"Tile\\"];var lcs$4=M[\\"geo\\"][\\"lcs\\"];var find$2=M[\\"lodash\\"][\\"find\\"];var map$2=M[\\"lodash\\"][\\"map\\"];var Browser$1=M[\\"Support\\"];var NebulaRender=function(r){__extends(e,r);function e(){var e=r.call(this)||this;e.yz=1;return e}e.prototype.renderFrame=function(e,r,t,i,a){if(!a.map.mapStyle.vn){return}this.kG=i.rejectMapMask||!t.map[\\"getMask\\"]()?undefined:StencilMode[\\"writeWithStencil\\"];var n=t.map.getOutseaState();var R=t.map.getOutseaDataType();if(n&&t.viewState.optimalZoom>=9.8){this.kG=StencilMode[\\"nbStencil\\"];var o=r&&r.outseaData;if(o){this.wG(e,t,i,a,o)}}if(t.map.bZ.MZ.drawMode!==\\"fast\\"&&!r.s_){return}var f=r.tiles;var s={};for(var u=0,l=f;u<l.length;u++){var v=l[u];if(Tile$1.YH(v)){var c=v.zo.z;if(!s[c]){s[c]=[]}s[c].push(v)}}var h=i.layer;var d=t.map.getStatus().features;var _=h.uo.getSource(h.co());var g=_.ra(t.viewState.optimalZoom);var y=map$2(Object.keys(s),function(e){return parseInt(e,10)});y.sort(function(e,r){return e-r});var m=y.indexOf(g);if(m>=0){y.splice(m,1);y.push(g)}if(t.viewState.viewMode===\\"3D\\"){this.yz=t.map.getView().EF()}for(var p=0,b=y;p<b.length;p++){var x=b[p];var C=s[x];if(!(d&&d.indexOf(\\"bg\\")===-1)){for(var M=0,S=C;M<S.length;M++){var v=S[M];if(!Tile$1.YH(v)){continue}this.Lc(e,v,t,i,a)}}if(!(d&&d.indexOf(\\"building\\")===-1)){for(var w=0,k=C;w<k.length;w++){var v=k[w];if(!Tile$1.YH(v)){continue}this.PD(e,v,t,i,a)}}if(!(d&&d.indexOf(\\"building\\")===-1)){for(var T=0,A=C;T<A.length;T++){var v=A[T];if(!Tile$1.YH(v)){continue}this.Ac(e,v,t,i,a)}}if(!(d&&d.indexOf(\\"road\\")===-1)){for(var I=0,$=C;I<$.length;I++){var v=$[I];if(!Tile$1.YH(v)){continue}this.Tc(e,v,t,i,a)}}if(!(d&&d.indexOf(\\"road\\")===-1)){for(var F=0,P=C;F<P.length;F++){var v=P[F];if(!Tile$1.YH(v)){continue}this.Ic(e,v,t,i,a)}}}if(r.tiles&&r.tiles.length>0){if(Browser$1[\\"amapRunTime\\"]&&Browser$1[\\"amapRunTime\\"][\\"map-init\\"]){var L=Date.now()-Browser$1[\\"amapRunTime\\"][\\"map-init\\"];this.Mee(\\"fp-time\\",L)}a.map.bZ.dynamic.set(\\"firstPaint\\",true)}if(window[\\"testTime\\"]&&!window[\\"testTime\\"][\\"renderTime\\"]&&f&&f.length>0){var E=(new Date).getTime();window[\\"testTime\\"][\\"renderTime\\"]=E-window[\\"testTime\\"][\\"start\\"]}if(n&&t.viewState.optimalZoom>=10){this.kG=StencilMode[\\"nbStencil\\"];var o=r&&r.outseaData;if(o){e.context.clear({stencil:true})}}};e.prototype.destroy=function(){};e.prototype.wG=function(e,r,t,i,a){if(!a||!a.LS){return}var n=e.aS();var o=n.context;var f=r.viewState;var s=[0,0];var u=f.centerCoord;if(r.viewState.optimalZoom<LocalZoom){s=a.LS.center}else{var l=lcs$4.getLocalByCoord([u[0],u[1]]).center;var v=a.LS.center[0]-l[0];var c=a.LS.center[1]-l[1];s=[v,c]}var h={outseaData:a,$i:n,viewState:f,Sa:s};this.zC(o,h)};e.prototype.zC=function(e,r){r.outseaData.Dc.upload(e,true);var t=r.outseaData.Dc.zs;var i=r.outseaData.Dc.Pc;var a=r.outseaData.Oc;var n=a.jc;for(var o=0,f=n.length;o<f;o++){var s=n[o];r.$i.Ce({u_color:[0,0,0,0],u_deltaCenter:r.Sa,u_mvpMatrix:r.viewState.mvpMatrix},{a_pos:{type:\\"vec2\\",buffer:t,Re:t.size,offset:0}},s.length,i,\\"TRIANGLES\\",undefined,ColorMode.zi,StencilMode[\\"outseaStencil\\"],undefined,s.offset)}};e.prototype.Lc=function(e,r,t,i,a){var n=e.Wn();var o=r.data;var f=true;for(var s=0,u=o;s<u.length;s++){var l=u[s];var v=l.Dc;if(!v){continue}v.upload(n.context,true);var c=v.zs;var h=v.Pc;var d=l.Oc;var _=f?0:1;f=false;var g={a_pos:{type:\\"vec2\\",Re:c.size,offset:0,buffer:c}};for(var y=_,m=d.jc.length;y<m;y++){var p=d.jc[y];var b=fillProperties.texture.An(a.map.mapStyle,p.mainkey,p.subkey,t.viewState.optimalZoom,p.minzoom);if(b){var x=getFillPatternUniformValues(t,p,r.Sa,a.map.mapStyle,this.yz);if(x){var C=a.map.getImage(x.u_image);if(C&&x.u_image){x.u_image=C;x.u_imageSize=C.size;drawFillPattern(e,x,g,p.length,h,\\"TRIANGLES\\",false,ColorMode.Si,this.kG,undefined,p.offset)}else if(x.u_image&&a.map.I_&&!a.map.I_.MH(x.u_image)){a.map.I_[\\"addImage\\"](x.u_image,{url:x.u_image,filter:\\"LINEAR\\",wrap:\\"REPEAT\\",cb:function(){return a.map.setNeedUpdate(true)}})}}}else{var x=getFillUniformValues(t,p,r.Sa,a.map.mapStyle,this.yz);if(x){n.Ce(x,g,p.length,h,\\"TRIANGLES\\",false,ColorMode.Si,this.kG,undefined,p.offset)}}}}};e.prototype.PD=function(e,r,t,i,a){var n=e.Wn();var o=r.data;var f=find$2(t.map.getLayers(),function(e){return e.CLASS_NAME===\\"AMap.IndoorMap\\"});var s;if(f){s=f.yD().show}var u=true;for(var l=0,v=o;l<v.length;l++){var c=v[l];var h=c.FD;if(!h){continue}h.upload(n.context,true);var d=h.zs;var _=h.Pc;var g=c.BD;if(!g){continue}var y=u?0:1;u=false;var m={a_pos:{type:\\"vec2\\",Re:d.size,offset:0,buffer:d}};for(var p=y,b=g.jc.length;p<b;p++){var x=g.jc[p];if(!f||!(x.bz&&x.bz!==\\"indoor_out_building\\"&&s)){var C=getFillUniformValues(t,x,r.Sa,a.map.mapStyle,this.yz);if(C){n.Ce(C,m,x.length,_,\\"TRIANGLES\\",false,ColorMode.Si,this.kG,undefined,x.offset)}}}}};e.prototype.Ac=function(e,r,t,i,a){var n=e.Yn();var o=r.data;var f=find$2(t.map.getLayers(),function(e){return e.CLASS_NAME===\\"AMap.IndoorMap\\"});var s;if(f){s=f.yD().show}for(var u=0,l=o;u<l.length;u++){var v=l[u];var c=v.Dc;if(!c){continue}c.upload(n.context,true);var h=v.Fc;var d=c.Ec;var _=c.Nc;var g={a_pos:{type:\\"vec2\\",Re:0,offset:0,buffer:d}};for(var y=0,m=h.jc.length;y<m;y++){var p=h.jc[y];var b=getFillOutlineUniformValues(t,p,r.Sa,a.map.mapStyle,this.yz);if(!f||!(p.bz&&p.bz!==\\"indoor_out_building\\"&&s)){if(b){n.Ce(b,g,p.length,_,\\"LINES\\",false,ColorMode.Si,this.kG,undefined,p.offset)}}}}};e.prototype.Ic=function(e,r,t,i,a){var n=e.Vn();if(!r.data){assert(r.data,\\"tile have no data\\");return}var o=r.data;for(var f=0,s=o;f<s.length;f++){var u=s[f];var l=u.$c;if(!l){continue}n.context.getExtension(\\"OES_element_index_uint\\");l.upload(n.context,true);var v=u.$c.zs.buffer;var c=u.$c.Pc.buffer;var h=u.Uc;var d=h.jc;var _=v.size;var g={a_pos:{type:\\"vec2\\",buffer:v,Re:_,offset:4*0},a_normal:{type:\\"vec2\\",buffer:v,Re:_,offset:4*2},a_distance:{type:\\"float\\",buffer:v,Re:_,offset:4*4},a_dir:{type:\\"vec2\\",buffer:v,Re:_,offset:4*5}};for(var y=0,m=d.length;y<m;y++){var p=d[y];var b=getLineUniformValues(t,p,false,r.Sa,a.map.mapStyle,this.yz);if(p.mainkey===-2&&a.map.debug){b={u_matrix:t.viewState.mvpMatrix,u_meter_per_pixel:t.viewState.resolution,u_width:2,u_color:[1,0,0,1],u_dash:0,u_border:0,u_localDeltaCenter:r.Sa,u_skyHeight:1,u_viewHeight:1}}if(!b){continue}if(b){n.Ce(b,g,p.length,c,\\"TRIANGLES\\",false,ColorMode.Si,this.kG,undefined,p.offset)}}}};e.prototype.Tc=function(e,r,t,i,a){var n=e.Vn();if(!r.data){assert(r.data,\\"tile have no data\\");return}var o=r.data;for(var f=0,s=o;f<s.length;f++){var u=s[f];var l=u.$c;if(!l){continue}n.context.getExtension(\\"OES_element_index_uint\\");l.upload(n.context,true);var v=u.$c.zs.buffer;var c=u.$c.Pc.buffer;var h=u.Uc;var d=h.jc;var _=v.size;var g={a_pos:{type:\\"vec2\\",buffer:v,Re:_,offset:4*0},a_normal:{type:\\"vec2\\",buffer:v,Re:_,offset:4*2},a_distance:{type:\\"float\\",buffer:v,Re:_,offset:4*4},a_dir:{type:\\"vec2\\",buffer:v,Re:_,offset:4*5}};for(var y=0,m=d.length;y<m;y++){var p=d[y];var b=getLineUniformValues(t,p,true,r.Sa,a.map.mapStyle,this.yz);if(b){n.Ce(b,g,p.length,c,\\"TRIANGLES\\",false,ColorMode.Si,this.kG,undefined,p.offset)}}}};e.prototype.Mee=function(e,r){if(Browser$1[\\"amapRunTime\\"]&&!Browser$1[\\"amapRunTime\\"][e]){Browser$1[\\"amapRunTime\\"][e]=r}};return e}(LayerRender);var TileState$2=M[\\"TileState\\"];var ColorScaleConstructor=M[\\"ColorScale\\"];var RasterLayerRender=function(r){__extends(e,r);function e(){var e=r.call(this)||this;return e}e.prototype.renderFrame=function(e,r,t,i,a,n){if(!a.map.mapStyle.vn){return}var o=t.viewState;var f=n.getLayerConfig();var s=f.zooms;var u=o.size,l=o.pitch,v=o.optimalZoom;if(o.optimalZoom<s[0]||o.optimalZoom>s[1]){return}var c=e.Gn();var h=t.map;var d=h.JF(t.viewState.optimalZoom);var _=d||[1,1,1,0];var g=r.tiles;var y=1;if(t.viewState.viewMode===\\"3D\\"){y=t.map.getView().EF()}if(i.ce){e.context.clear({depth:true})}var m=null;if(f.OY){var p=h.mapStyle.vn.MS(\\"satellite\\");if(p&&p[\\"filter\\"]){m=ColorScaleConstructor[\\"getTexture\\"](e.context,p[\\"filter\\"])||null}}for(var b=0,x=g.length;b<x;b+=1){var C=g[b];for(var M=0,S=C.length;M<S;M+=1){var w=C[M];if(w.status===TileState$2.LOADED){c.Ce({u_skyColor:_,u_viewHeight:o.size[1],u_skyHeight:y,u_opacity:f.opacity||1,u_texture:w.data.texture,u_mvpMatrix:o.mvpMatrix,u_localDeltaCenter:w.data.Sa,u_flterFlag:m?true:false,u_colorscale:m},{a_Position:{type:\\"vec4\\",buffer:w.data.zs,Re:0,offset:0}},6,undefined,undefined,i.depthTest,ColorMode.Si,i.rejectMapMask||!t.map.getMask()?undefined:StencilMode.writeWithStencil)}}for(var M=0,S=C.length;M<S;M+=1){var w=C[M];if(w.status===TileState$2.LOADED&&t.debug){c.Ce({u_skyColor:_,u_viewHeight:o.size[1],u_skyHeight:y,u_opacity:f.opacity||1,u_texture:w.data.Js,u_mvpMatrix:o.mvpMatrix,u_localDeltaCenter:w.data.Sa,u_flterFlag:false,u_colorscale:null},{a_Position:{type:\\"vec4\\",buffer:w.data.zs,Re:0,offset:0}},6,undefined,\\"TRIANGLES\\",undefined,undefined,undefined)}}}return};return e}(LayerRender);var Util$4=AMap[\\"Util\\"];var PolygonWebglRender=function(){function e(e){this.ydt=e}e.prototype.render=function(e,r,t){if(!e._map){return}if(e._opts.extrusionHeight&&e._opts.extrusionHeight>0){this.S_(e,r,t)}else{this.Wx(e,r,t);this.Gx(e,r,t)}};e.prototype.S_=function(e,r,t,i,a){if(i===void 0){i=false}if(a===void 0){a=false}if(!e.visible){return}var n=e.p0;if(!n){return}n.upload(t.context,true);var o=r.map;var f=r.viewState.size;var s=o.getView();var u=e.rY(r);var l={zooms:e._opts.zooms,layer:{CLASS_NAME:\\"AMap.VectorLayer\\"},opacity:1,heightFactor:1,visible:true,zIndex:e._opts.zIndex,depthTest:true};var v=1;if(r.viewState.viewMode===\\"3D\\"){v=s.EF()}else{return}var c=s.X(f[0]/2,s.Uu()+5);var h=s.X(f[0]/2,s.Uu()-5);var d=s.pz().getPosition();var _=c[0]-d[0];var g=c[1]-d[1];var y=h[0]-d[0];var m=h[1]-d[1];var p=[Math.sqrt(_*_+g*g),Math.sqrt(y*y+m*m)];var b=e.m0;var x=n.zs;for(var C=0,M=b.jc;C<M.length;C++){var S=M[C];var w=Util$4.color2RgbaArray(e._opts.roofColor);var k=Util$4.color2RgbaArray(e._opts.wallColor);var T=void 0;if(a){T=this.ydt.find(S.mainkey);if(!T){T=this.ydt.add(S.mainkey)}}if(a&&!T){return}var A=!!S.bz;if(A&&!a){var I=getFillExtPatternUniformValues(r,S,u,l,{wallColor:k,roofColor:w},v,p);if(I){var $=o.getImage(I.u_image);if($){I.u_image=$;I.u_imageSize=$.size;var F=t.sH();F.Ce(I,{a_pos:{type:\\"vec4\\",Re:x.size,offset:0,buffer:x},a_normal:{type:\\"vec3\\",Re:x.size,offset:4*4,buffer:x},a_textureCoord:{type:\\"vec2\\",Re:x.size,offset:4*7,buffer:x}},S.length,undefined,\\"TRIANGLES\\",l.depthTest,i?ColorMode.disabled:ColorMode.Si,undefined,CullFaceMode.back,S.offset)}else if(I.u_image&&o.I_&&!o.I_.MH(I.u_image)){o.addImage(I.u_image,{url:I.u_image,filter:\\"LINEAR\\",wrap:\\"REPEAT\\",cb:function(){return o.setNeedUpdate(true)}})}}}else{var I=getFillExtUniformValues(r,S,u,l,{wallColor:a?T:k,roofColor:a?T:w},v,p);if(I){var F=t.k_();I.u_isPick=a;F.Ce(I,{a_pos:{type:\\"vec4\\",Re:x.size,offset:0,buffer:x},a_normal:{type:\\"vec3\\",Re:x.size,offset:4*4,buffer:x}},S.length,undefined,\\"TRIANGLES\\",l.depthTest,i?ColorMode.disabled:ColorMode.Si,undefined,CullFaceMode.back,S.offset)}}}};e.prototype.qx=function(e,r,t){var i=e.rY(r);var a=e._opts;if(!a.fillColor){return}var n;if(typeof a.fillColor===\\"function\\"){n=Util$4.color2RgbaArray(a.fillColor(t))}else{n=Util$4.color2RgbaArray(a.fillColor)}if(!n){return}n=n.slice(0,3);var o;if(typeof a.fillOpacity===\\"function\\"){o=a.fillOpacity(t)}else{o=a.fillOpacity}n.push(o);return{u_offset:e.zx,u_color:n,u_matrix:r.viewState.mvpMatrix,u_localDeltaCenter:i,u_skyHeight:r.viewState.skyHeight,u_viewHeight:r.viewState.size[1]}};e.prototype.Vx=function(e,r,t){var i=e.rY(r);var a=e._opts;if(!a.strokeColor){return}var n;if(typeof a.strokeColor===\\"function\\"){n=Util$4.color2RgbaArray(a.strokeColor(t))}else{n=Util$4.color2RgbaArray(a.strokeColor)}if(!n){return}n=n.slice(0,3);n.push(a.strokeOpacity);var o=this.Xx(e);return{u_color:n,u_matrix:r.viewState.mvpMatrix,u_localDeltaCenter:i,u_width:a.strokeWeight,u_offset:e.zx,u_meter_per_pixel:r.viewState.resolution,u_dash:o.dash,u_dashType:o.Jx,u_border:false,u_skyHeight:r.viewState.skyHeight,u_viewHeight:r.viewState.size[1]}};e.prototype.Wx=function(e,r,t){if(!e.Dx){return}var i=e.Dx;var a=e.XB;i.upload(t.context);if(!i.uploaded||!i.zs){return}if(!e.visible){return}var n=i.zs;var o=t.Wn();o.context.getExtension(\\"OES_element_index_uint\\");for(var f=0,s=a.jc.length;f<s;f++){var u=this.qx(e,r,f);if(!u){continue}var l=a.jc[f];o.Ce(u,{a_pos:{buffer:n,type:\\"vec2\\",Re:n.size,offset:0}},l.length,i.Pc,undefined,undefined,ColorMode.Si,undefined,undefined,l.offset)}};e.prototype.Gx=function(e,r,t){if(!e.Px){return}var i=e.Px;var a=e.qB;i.upload(t.context);if(!i.uploaded&&!i.zs){return}var n=i.zs.buffer;if(!e.visible){return}var o=t.Xn();o.context.getExtension(\\"OES_element_index_uint\\");for(var f=0,s=a.jc.length;f<s;f++){var u=this.Vx(e,r,f);if(!u){continue}var l=a.jc[f];o.Ce(u,{a_pos:{buffer:n,type:\\"vec2\\",Re:n.size,offset:0},a_normal:{type:\\"vec2\\",buffer:n,Re:n.size,offset:4*2},a_distance:{type:\\"float\\",buffer:n,Re:n.size,offset:4*4},a_dir:{type:\\"vec2\\",buffer:n,Re:n.size,offset:4*5}},l.length,i.Pc.buffer,undefined,undefined,ColorMode.Si,undefined,undefined,l.offset)}};e.prototype.Xx=function(e){var r=e._opts;var t=2;var i=[1,0,0];if(r.strokeStyle===\\"dashed\\"&&r.strokeDasharray){if(r.strokeDasharray.length>=3){t=3;i=r.strokeDasharray.slice(0,3)}else{t=2;i=__spreadArrays(r.strokeDasharray.slice(0),[0])}}return{Jx:t,dash:i}};return e}();var Util$5=AMap[\\"Util\\"];var PolylineWebglRender=function(){function e(){this.See=performance.now()}e.prototype.render=function(e,r,t){if(!e._map){return}var i=e._opts;this.Tc(e,r,t);this.Ic(e,r,t);if(i.lineGradient){this.nC(e,r,t)}if(i.showDir){this.N_(e,r,t,i)}};e.prototype.fb=function(e,r){var t=e.rY(r);var i=e._opts;var a=i.strokeWeight||-1;if(a<=0){return}if(i.strokeOpacity<=0){return}if(!i.strokeColor){return}var n=Util$5.color2RgbaArray(i.strokeColor);if(!n){return}n=n.slice(0,3);var o=this.Xx(e);n.push(i.strokeOpacity);if(i.unit===\\"meter\\"){a/=r.viewState.resolution}return{u_color:n,u_matrix:r.viewState.mvpMatrix,u_meter_per_pixel:r.viewState.resolution,u_width:a,u_offset:e.zx,u_localDeltaCenter:t,u_dash:o.dash,u_dashType:o.Jx,u_skyHeight:r.viewState.skyHeight,u_viewHeight:r.viewState.size[1]}};e.prototype.pb=function(e,r){var t=e.rY(r);var i=e._opts;if(!i.outlineColor){return}var a=Util$5.color2RgbaArray(i.outlineColor);if(!a){return}a=a.slice(0,3);a.push(i.strokeOpacity);var n=i.strokeWeight+i.borderWeight*2;if(n<=0){return}if(i.strokeOpacity<=0){return}var o=this.Xx(e);return{u_color:a,u_matrix:r.viewState.mvpMatrix,u_localDeltaCenter:t,u_width:n,u_offset:e.zx,u_meter_per_pixel:r.viewState.resolution,u_dash:o.dash,u_dashType:o.Jx,u_skyHeight:r.viewState.skyHeight,u_viewHeight:r.viewState.size[1]}};e.prototype.B_=function(e,r,t){if(!e._map){return}var i=e.rY(r);var a=e._opts;var n=a.strokeWeight;var o;if(n<=0){return}var f=Boolean(a.dirImg);var s=a[\\"dirImgGap\\"]?a[\\"dirImgGap\\"]:1;if(f){e.U_(t);o=e.E_}else{o=e._map.getImage(\\"AMapArrow\\")}if(!o){return}var u=Util$5.color2RgbaArray(a.dirColor).slice(0,3);if(a.unit===\\"meter\\"){n/=r.viewState.resolution}return{u_matrix:r.viewState.mvpMatrix,u_meter_per_pixel:r.viewState.resolution,u_meter_per_pixel_optimal:r.viewState.optimalResolution,u_width:n,u_offset:e.zx,u_localDeltaCenter:i,u_texture:o,u_iconsize:o.size,u_custom_img_flag:f,u_dir_color:u,u_skyHeight:r.viewState.skyHeight,u_viewHeight:r.viewState.size[1],u_timer:performance.now()-this.See,u_speed:a.speed,u_size_scale:s,u_animate:!!a.animate}};e.prototype.oC=function(e,r,t){if(!e._map){return}var i=e.rY(r);var a=e._opts;if(!a.lineGradient){return}var n=a.strokeWeight;if(n<=0){return}if(!e.rC){e.aC(t,a.lineGradient)}if(a.unit===\\"meter\\"){n/=r.viewState.resolution}return{u_matrix:r.viewState.mvpMatrix,u_meter_per_pixel:r.viewState.resolution,u_width:n,u_offset:e.zx,u_localDeltaCenter:i,u_texture:e.rC,u_total_distance:e.sC,u_skyHeight:r.viewState.skyHeight,u_viewHeight:r.viewState.size[1]}};e.prototype.U_=function(e,r){if(e.F_){if(!e.E_){e.E_=r.createTexture(e.F_,{Zi:true});e.E_.bind(r.gl.CLAMP_TO_EDGE,r.gl.LINEAR,r.gl.LINEAR)}}};e.prototype.aC=function(e,r,t){if(!e.rC){var i=createLineGradinetCanvas(t.values);e.rC=r.createTexture(i,{Zi:true});var a=r.gl;e.rC.bind(a.CLAMP_TO_EDGE,a.NEAREST,a.NEAREST_MIPMAP_NEAREST)}};e.prototype.Xx=function(e){var r=e._opts;var t=2;var i=[1,0,0];if(r.strokeStyle===\\"dashed\\"&&r.strokeDasharray){if(r.strokeDasharray.length>=3){t=3;i=r.strokeDasharray.slice(0,3)}else{t=2;i=__spreadArrays(r.strokeDasharray.slice(0),[0])}}return{Jx:t,dash:i}};e.prototype.N_=function(e,r,t,i){if(!e.Px){return}var a=e.Px;a.upload(t.context);if(!a.uploaded||!a.zs){return}if(!e.visible){return}var n=a.zs.buffer;var o=this.B_(e,r,t.context);if(!o){return}var f=t.M_();f.Ce(o,{a_pos:{buffer:n,type:\\"vec2\\",Re:n.size,offset:0},a_normal:{type:\\"vec2\\",buffer:n,Re:n.size,offset:4*2},a_distance:{type:\\"float\\",buffer:n,Re:n.size,offset:4*4},a_dir:{type:\\"vec2\\",buffer:n,Re:n.size,offset:4*5}},a.Qx.length*3,a.Pc.buffer,undefined,undefined,ColorMode.Si,undefined,undefined,0);f.Ni()};e.prototype.Ic=function(e,r,t){if(!e.Px){return}var i=e.Px;i.upload(t.context);if(!i.uploaded||!i.zs){return}if(!e.visible){return}var a=i.zs.buffer;var n=this.fb(e,r);if(!n){return}var o=t.Xn();o.Ce(n,{a_pos:{buffer:a,type:\\"vec2\\",Re:a.size,offset:0},a_normal:{type:\\"vec2\\",buffer:a,Re:a.size,offset:4*2},a_distance:{type:\\"float\\",buffer:a,Re:a.size,offset:4*4},a_dir:{type:\\"vec2\\",buffer:a,Re:a.size,offset:4*5}},i.Qx.length*3,i.Pc.buffer,undefined,undefined,ColorMode.Si,undefined,undefined,0);o.Ni()};e.prototype.nC=function(e,r,t){if(!e.Px){return}var i=e.Px;i.upload(t.context);if(!i.uploaded||!i.zs){return}if(!e.visible){return}var a=i.zs.buffer;var n=this.oC(e,r,t.context);if(!n){return}var o=t.sS();o.Ce(n,{a_pos:{buffer:a,type:\\"vec2\\",Re:a.size,offset:0},a_normal:{type:\\"vec2\\",buffer:a,Re:a.size,offset:4*2},a_distance:{type:\\"float\\",buffer:a,Re:a.size,offset:4*4},a_dir:{type:\\"vec2\\",buffer:a,Re:a.size,offset:4*5}},i.Qx.length*3,i.Pc.buffer,undefined,undefined,ColorMode.Si,undefined,undefined,0);o.Ni()};e.prototype.Tc=function(e,r,t){var i=e._opts;if(!i||!i.isOutline){return}if(!e.Px){return}var a=e.Px;a.upload(t.context);if(!a.uploaded&&!a.zs){return}var n=a.zs.buffer;if(!e.visible){return}var o=this.pb(e,r);if(!o){return}var f=t.Xn();f.Ce(o,{a_pos:{buffer:n,type:\\"vec2\\",Re:n.size,offset:0},a_normal:{type:\\"vec2\\",buffer:n,Re:n.size,offset:4*2},a_distance:{type:\\"float\\",buffer:n,Re:n.size,offset:4*4},a_dir:{type:\\"vec2\\",buffer:n,Re:n.size,offset:4*5}},a.Qx.length*3,a.Pc.buffer,undefined,undefined,ColorMode.Si,undefined,undefined,0);f.Ni()};return e}();function createLineGradinetCanvas(e){var r=document.createElement(\\"canvas\\");var t=4096;r.height=1;r.width=t;var i=r.getContext(\\"2d\\");var a=i.createImageData(t,1);var n=0;for(var o=0;o<t;o++){var f=void 0;for(;n<e.length;n++){if(n===e.length-1){f=e[n][1];break}var s=e[n+1][0];if(o>s*t){continue}f=e[n][1];break}f=e[n][1];var u=Util$5.color2RgbaArray(f);a.data[o*4]=u[0]*255;a.data[o*4+1]=u[1]*255;a.data[o*4+2]=u[2]*255;a.data[o*4+3]=u[3]*255}i.putImageData(a,0,0);return r}var Util$6=AMap[\\"Util\\"];var Support$5=M[\\"Support\\"];var CircleWebglRender=function(){function e(){}e.prototype.render=function(e,r,t){if(!e._map){return}if(!e[\\"getRadius\\"]()){return}if(Support$5[\\"safari\\"]){this.wee(e,r,t)}else{this.Cb(e,r,t)}};e.prototype.Cb=function(e,r,t){if(!e.visible){return}var i=this.Ab(e,r);if(!i){return}var a=t.Un();a.Ce(i,{},1,undefined,\\"POINTS\\",false,ColorMode.Si,undefined,undefined,0)};e.prototype.wee=function(e,r,t){var i=e.Sb;if(!i){return}i.upload(t.context);if(!i.upload){return}if(!e.visible){return}var a=i.zs;var n=this.Ab(e,r);if(!n){return}var o=t.kee();o.Ce(n,{a_pos:{buffer:a,type:\\"vec2\\",Re:a.size,offset:0}},i._b.length,undefined,\\"POINTS\\",false,ColorMode.Si,undefined,undefined,0)};e.prototype.Lb=function(e,r,t){if(!e.visible){return}var i=this.Tb(e,r);if(!i){return}var a=t.Un();a.Ce(i,{},1,undefined,\\"POINTS\\",false,ColorMode.Si,undefined,undefined,0)};e.prototype.Ab=function(e,r){var t=e.KB;if(!t){return}var i=e.rY(r);var a=e._opts;if(!a.fillColor){return}var n=Util$6.color2RgbaArray(a.fillColor).slice(0,3);n.push(a.fillOpacity);var o=a.radius+(a.strokeWeight||0);var f=[0,a.radius/o];var s=[0,0,0,0];if(a.strokeColor&&a.strokeWeight&&a.strokeOpacity){s=Util$6.color2RgbaArray(a.strokeColor).slice(0,3);s.push(a.strokeOpacity)}return{u_pos:t,u_color:n,u_borderColor:s,u_offset:e.zx,u_matrix:r.viewState.mvpMatrix,u_localDeltaCenter:i,u_radius:this.Ib(e),u_range:f,u_retinaRatio:Support$5.Ue?2:1,u_skyHeight:r.viewState.skyHeight,u_viewHeight:r.viewState.size[1]}};e.prototype.Tb=function(e,r){var t=e.KB;if(!t){return}var i=e.rY(r);var a=e._opts;if(!a.strokeWeight){return}if(!a.strokeColor){return}var n=Util$6.color2RgbaArray(a.strokeColor).slice(0,3);n.push(a.strokeOpacity);var o=a.radius+a.strokeWeight;var f=[a.radius/o,1];var s=n.slice(0,3);s.push(0);return{u_pos:t,u_color:n,u_borderColor:s,u_offset:e.zx,u_matrix:r.viewState.mvpMatrix,u_localDeltaCenter:i,u_radius:this.Ib(e),u_range:f,u_retinaRatio:Support$5.Ue?2:1,u_skyHeight:r.viewState.skyHeight,u_viewHeight:r.viewState.size[1]}};e.prototype.Ib=function(e){var r=e._opts;var t=r.radius+(r.strokeWeight||0);return Math.min(t,64)};return e}();var ColorPick=function(){function e(){this.uA={};this.cdt=[0,0,0,255];this.ldt=256}e.prototype.add=function(e){this.uA[this.fdt()]=e;return __spreadArrays(this.cdt)};e.prototype.find=function(e){var r=this.ldt;var t=r*r;for(var i in this.uA){var a=Number(i);if(isEqual(this.uA[a],e)){return[a%r,~~(a/r)%r,~~(a/t)%r,255]}}return undefined};e.prototype.clear=function(){this.cdt=[0,0,0,255];this.uA={}};e.prototype.ddt=function(){return __spreadArrays(this.cdt)};e.prototype.GV=function(e){var r=this.ldt;var t=r*r;var i=e[0],a=e[1],n=e[2];var o=i+a*r+n*t;return this.uA[o]};e.prototype.fdt=function(){var e=this.ldt;var r=e*e;var t=this.cdt,i=t[0],a=t[1],n=t[2];var o=i+a*e+n*r+1;this.cdt[0]=o%e;this.cdt[1]=~~(o/e)%e;this.cdt[2]=~~(o/r)%e;return o};return e}();var Support$6=M[\\"Support\\"];var scale$3=Support$6.scale;var OverlayRender=function(r){__extends(e,r);function e(){var e=r!==null&&r.apply(this,arguments)||this;e.ydt=new ColorPick;e.uC=new PolygonWebglRender(e.ydt);e.cC=new PolylineWebglRender;e.dC=new CircleWebglRender;return e}e.prototype.renderFrame=function(e,r,t,i,a){var n=t.viewState.zoom;this.wf=t;this.vdt=e;this.Tee=r.sr;this.pu=scale$3;if(r.sr){for(var o=0,f=r.sr;o<f.length;o++){var s=f[o];if(n<s._opts.zooms[0]||n>s._opts.zooms[1]){continue}switch(s.CLASS_NAME){case\\"Overlay.Polygon\\":case\\"Overlay.Rectangle\\":case\\"Overlay.Circle\\":case\\"Overlay.Ellipse\\":this.hC(s,t,e);break;case\\"Overlay.Polyline\\":case\\"Overlay.BezierCurve\\":this.lC(s,t,e);break;case\\"Overlay.CircleMarker\\":this.fC(s,t,e);break}}}};e.prototype.pickRender=function(e,r){if(!this.vdt){return}var t=this.vdt.context;var i=this.vdt.context.gl;if(!e){return}var a=e.size[0]*scale$3;var n=e.size[1]*scale$3;var o=e.viewState.bounds.toString();var f=false;if(!this.bee){this.bee=this.Aee(i,a,n,o);f=true}else if(a!==this.bee.w||n!==this.bee.h){this.Iee(this.bee,i,a,n,o);f=true}else if(o!==this.bee.bounds){this.bee.bounds=o;f=true}if(f){t.bindFramebuffer.set(this.bee);t.be.set([0,0,a,n]);t.clear({color:true,stencil:true,depth:true});if(this.Tee){var s=e.viewState.zoom;for(var u=0,l=this.Tee;u<l.length;u++){var v=l[u];var c=v;if(s<v._opts.zooms[0]||s>v._opts.zooms[1]){continue}if(v.CLASS_NAME===\\"Overlay.Polygon\\"&&c._opts.extrusionHeight>0){this.uC.S_(c,e,this.vdt,false,true)}}}t.bindFramebuffer.set(null)}return this.bee};e.prototype.mdt=function(){if(this.vdt){var e=this.vdt.context;e.bindFramebuffer.set(null);e.setDirty()}};e.prototype.destroy=function(){if(this.ydt&&this.ydt[\\"clear\\"]){this.ydt.clear();delete this.ydt}if(this.bee&&this.vdt){var e=this.vdt.context.gl;if(e){e.deleteFramebuffer(this.bee)}this.bee=null;delete this.bee}if(this.Tee){this.Tee=[]}};e.prototype.hC=function(e,r,t){this.uC.render(e,r,t)};e.prototype.lC=function(e,r,t){this.cC.render(e,r,t)};e.prototype.fC=function(e,r,t){this.dC.render(e,r,t)};e.prototype.Aee=function(e,r,t,i){var a=e.createFramebuffer();a.w=r;a.h=t;a.bounds=i;var n=e.createTexture();a.texture=n;e.bindTexture(e.TEXTURE_2D,n);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,r,t,0,e.RGBA,e.UNSIGNED_BYTE,null);var o=e.createRenderbuffer();a.AC=o;e.bindRenderbuffer(e.RENDERBUFFER,o);e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_COMPONENT16,r,t);e.bindFramebuffer(e.FRAMEBUFFER,a);e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,n,0);e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,o);var f=e.checkFramebufferStatus(e.FRAMEBUFFER);if(e.FRAMEBUFFER_COMPLETE!==f){console.log(\\"Frame buffer object is incomplete: \\"+f.toString());return}e.bindFramebuffer(e.FRAMEBUFFER,null);e.bindTexture(e.TEXTURE_2D,null);e.bindRenderbuffer(e.RENDERBUFFER,null);return a};e.prototype.Iee=function(e,r,t,i,a){e.w=t;e.h=i;e.bounds=a;r.bindTexture(r.TEXTURE_2D,e.texture);r.texImage2D(r.TEXTURE_2D,0,r.RGBA,t,i,0,r.RGBA,r.UNSIGNED_BYTE,null);r.bindRenderbuffer(r.RENDERBUFFER,e.AC);r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_COMPONENT16,t,i);r.bindTexture(r.TEXTURE_2D,null);r.bindRenderbuffer(r.RENDERBUFFER,null)};return e}(LayerRender);var TileState$3=M[\\"TileState\\"];var VectorTrafficRender=function(r){__extends(e,r);function e(){var e=r.call(this)||this;return e}e.prototype.renderFrame=function(e,r,t,i){var a=t.viewState.optimalZoom;if(a<i.zooms[0]||a>i.zooms[1]){return}if(i.ce){e.context.clear({depth:true})}var n=r.tiles[0];if(n&&n.length){for(var o=0,f=n;o<f.length;o++){var s=f[o];if(s.status!==TileState$3.LOADED){continue}this.Ic(e,s,t,i)}}};e.prototype.destroy=function(){};e.prototype.Ic=function(e,r,t,i){var a=e.Vn();if(!r.data){assert(r.data,\\"tile have no data\\");return}var n=r.data;var o=n.$c;if(!o){return}o.upload(a.context,true);var f=o.zs.buffer;var s=o.Pc.buffer;var u=n.Uc;if(!u){return}var l=u.jc;var v=t.viewState.optimalZoom;var c=n.Sa;var h=i.opacity;var d=1;if(t.viewState.viewMode===\\"3D\\"){d=t.map.getView().EF()}for(var _=0,g=l.length;_<g;_++){var y=l[_];var m=i.HY[y.color]||i.HY[4];var p={u_matrix:t.viewState.mvpMatrix,u_meter_per_pixel:t.viewState.resolution,u_width:y.width,u_color:[m[0],m[1],m[2],m[3]*h],u_border:0,u_dash:undefined,u_localDeltaCenter:c,u_skyHeight:d,u_viewHeight:t.viewState.size[1]};var b=f.size;a.context.getExtension(\\"OES_element_index_uint\\");a.Ce(p,{a_pos:{type:\\"vec2\\",buffer:f,Re:b,offset:4*0},a_normal:{type:\\"vec2\\",buffer:f,Re:b,offset:4*2},a_distance:{type:\\"float\\",buffer:f,Re:b,offset:4*4},a_dir:{type:\\"vec2\\",buffer:f,Re:b,offset:4*5}},y.length,s,\\"TRIANGLES\\",i.depthTest,ColorMode.Si,i.rejectMapMask||!t.map.getMask()?undefined:StencilMode.writeWithStencil,undefined,y.offset)}};return e}(LayerRender);var VTRender=function(r){__extends(e,r);function e(){var e=r.call(this)||this;return e}e.prototype.renderFrame=function(e,r,t,i){var a=e.context;var n=a.gl;return};return e}(LayerRender);var skyFragmentString=\\"precision highp float;\\\\nuniform float u_opacity;\\\\n\\\\nvarying vec4 v_color;\\\\nvarying vec4 v_pos;\\\\n\\\\nvoid main() {\\\\n  gl_FragColor = v_color;\\\\n  // float x = v_pos.x / v_pos.w;\\\\n  gl_FragColor.a *= u_opacity;\\\\n}\\";var skyVertextString=\\"precision highp float;\\\\nuniform vec2 u_skyline;\\\\nuniform mat4 u_mvpMatrix;\\\\nattribute vec4 a_pos;\\\\nattribute vec4 a_color;\\\\nvarying vec4 v_color;\\\\nvarying vec4 v_pos;\\\\n\\\\nvoid main() {\\\\n    vec4 pos = vec4(a_pos.xy, 0, 1);\\\\n    // vec4 pos = u_mvpMatrix * vec4(a_pos.xyz, 1);\\\\n    gl_Position = pos;\\\\n    v_color = a_color;\\\\n    v_pos = gl_Position;\\\\n}\\\\n\\";var skyPatternFragmentString=\\"precision highp float;\\\\nuniform sampler2D u_texture;\\\\n\\\\nuniform float u_opacity;\\\\nuniform float u_rotation;\\\\nvarying vec2 v_coord;\\\\nvarying float v_opacity;\\\\nvoid main() {\\\\n  // gl_FragColor = vec4(1.0,0,0,1.0);\\\\n  gl_FragColor = texture2D(u_texture, vec2(v_coord.x+u_rotation, v_coord.y));\\\\n  // // float x = v_pos.x / v_pos.w;\\\\n  gl_FragColor.a *= u_opacity*v_opacity;\\\\n}\\";var skyPatternVertextString=\\"precision highp float;\\\\nuniform vec2 u_skyline;\\\\nuniform mat4 u_mvpMatrix;\\\\nattribute vec4 a_pos;\\\\nattribute float a_opacity;\\\\nattribute vec2 a_coord;\\\\n\\\\n\\\\nvarying vec2 v_coord;\\\\nvarying float v_opacity;\\\\n\\\\nvoid main() {\\\\n    vec4 pos = u_mvpMatrix * vec4(a_pos.xyz, 1);\\\\n    gl_Position = pos;\\\\n    v_coord = a_coord;\\\\n    v_opacity = a_opacity;\\\\n}\\\\n\\";var skyUniforms={u_mvpMatrix:\\"mat4\\",u_opacity:\\"float\\",u_skyline:\\"vec2\\"};var skyAttributes={a_pos:{Me:\\"float32\\",Oe:\\"vec4\\"},a_color:{Me:\\"float32\\",Oe:\\"vec4\\"}};function getAtmosphereTexture(e,r){var t=e.vn.nX(\\"00001\\",\\"2\\",\\"texture\\",r);if(t){return\\"https://\\"+t}return\\"\\"}function getSkyTexture(e,r){var t=e.vn.nX(\\"00001\\",\\"1\\",\\"texture\\",r);if(t){return\\"https://\\"+t}return\\"\\"}var sky={uniforms:skyUniforms,attributes:skyAttributes,vertexSource:skyVertextString,fragmentSource:skyFragmentString};var skyPatternUniforms={u_mvpMatrix:\\"mat4\\",u_opacity:\\"float\\",u_skyline:\\"vec2\\",u_texture:\\"sampler2D\\",u_rotation:\\"float\\"};var skyPatternAttributes={a_pos:{Me:\\"float32\\",Oe:\\"vec4\\"},a_opacity:{Me:\\"float32\\",Oe:\\"float\\"},a_coord:{Me:\\"float32\\",Oe:\\"vec2\\"}};var skyPattern={uniforms:skyPatternUniforms,attributes:skyPatternAttributes,vertexSource:skyPatternVertextString,fragmentSource:skyPatternFragmentString};var SmartArrayBuffer$3=M[\\"SmartArrayBuffer\\"];var SkyLayerRender=function(r){__extends(e,r);function e(){var e=r.call(this)||this;return e}e.prototype.renderFrame=function(e,r,t,i,a,n){if(!a.map.mapStyle.vn){return}var o=getAtmosphereTexture(a.map.mapStyle,t.viewState.optimalZoom);var f=o?a.map.getImage(o):undefined;if(f){this.jB(e,t,a,o,t.viewState.zoom<12?1:0)}else if(o&&a.map.I_&&!a.map.I_.MH(o)){a.map.addImage(o,{url:o,filter:\\"LINEAR\\",wrap:\\"REPEAT\\",cb:function(){return a.map.setNeedUpdate(true)}})}if(!o||!f){this.NB(e,t,t.map.sX(t.viewState.optimalZoom),t.viewState.zoom<12?1:0)}var s=getSkyTexture(a.map.mapStyle,t.viewState.optimalZoom);var u=s?a.map.getImage(s):undefined;if(u){this.jB(e,t,a,s,step(t.viewState.zoom-11,1,0))}else if(s&&a.map.I_&&!a.map.I_.MH(s)){a.map.addImage(s,{url:s,filter:\\"LINEAR\\",wrap:\\"REPEAT\\",cb:function(){return a.map.setNeedUpdate(true)}})}if(!s||!u){this.NB(e,t,t.map.JF(t.viewState.optimalZoom),step(t.viewState.zoom-11,1,0))}return};e.prototype.NB=function(e,r,t,i){var a=e.rS();var n=r.viewState;var o=e.context;var f=r.map.getView();var s=n.size,u=n.pitch,l=n.optimalZoom;if(f.type===\\"2D\\"){return}var v=f.Uu();v=this.yz(f.getStatus().pitch,v,f.getStatus().size[1],l);if(v<=0||u<=0){return}var c=r.map;var h=this.WF(v,t,n,f);if(!this.zs){this.zs=new SmartArrayBuffer$3(o,h,32,\\"ARRAY_BUFFER\\")}else{this.zs.update(h)}var d=this.zs.buffer;a.Ce({u_opacity:i,u_mvpMatrix:n.mvpMatrix,u_skyline:[0,0]},{a_pos:{type:\\"vec4\\",buffer:d,Re:d.size,offset:0},a_color:{type:\\"vec4\\",buffer:d,Re:d.size,offset:16}},d.length,undefined,\\"TRIANGLES\\",undefined,ColorMode.Si,undefined)};e.prototype.jB=function(e,r,t,i,a){if(a===0){return}var n=e.EB();var o=e.rS();var f=r.viewState;var s=e.context;var u=r.map.getView();var l=f.size,v=f.pitch,c=f.optimalZoom;if(u.type===\\"2D\\"){return}var h=u.Uu();h=this.yz(u.getStatus().pitch,h,u.getStatus().size[1],c);if(h<=0||v<=0){return}var d=r.map;var _=d.JF(f.optimalZoom);var g=(180-f.rotation)/360;var y=this.WB(h,f,u);if(!this.zs){this.zs=new SmartArrayBuffer$3(s,y,32,\\"ARRAY_BUFFER\\")}else{this.zs.update(y)}var m=this.zs.buffer;var p=t.map.getImage(i);if(p){n.Ce({u_opacity:a,u_mvpMatrix:f.mvpMatrix,u_skyline:[0,0],u_texture:p,u_rotation:g},{a_pos:{type:\\"vec4\\",buffer:m,Re:m.size,offset:0},a_opacity:{type:\\"float\\",buffer:m,Re:m.size,offset:16},a_coord:{type:\\"vec2\\",buffer:m,Re:m.size,offset:24}},m.length/2,undefined,\\"TRIANGLES\\",undefined,ColorMode.Si,undefined);o.Ce({u_opacity:1,u_mvpMatrix:f.mvpMatrix,u_skyline:[0,0]},{a_pos:{type:\\"vec4\\",buffer:m,Re:m.size,offset:0},a_color:{type:\\"vec4\\",buffer:m,Re:m.size,offset:16}},m.length/2,undefined,\\"TRIANGLES\\",undefined,ColorMode.Si,undefined,undefined,m.length/2)}};e.prototype.WF=function(e,r,t,i){var a=t.size[1]/2;var n=t.pitch,o=t.zoom;var f=[-1,1-e/a];var s=[1,1-e/a];r[3]=1;var u=i.map.mapStyle.dn(30001,1,o);var l=[.988,.976,.949,1];if(u&&u.faceColor){l=u.faceColor.normalize()}var v=__spreadArrays(l);v[3]=1;var c=__spreadArrays(l)||[1,1,1,0];c[3]=0;var h=__spreadArrays(l)||[1,1,1,Math.min(.1,1/o)];h[3]=Math.min(.1,5/o);var d=__spreadArrays(r)||[1,1,1,1];d[3]=-.7;var _=new Float32Array(__spreadArrays([f[0],f[1],0,0],v,[-1,1,0,0],r,[s[0],s[1],0,0],v,[s[0],s[1],0,0],v,[-1,1,0,0],r,[1,1,0,0],r,[f[0],f[1],0,0],h,[-1,1,0/3,0],c,[s[0],s[1],0,0],h,[s[0],s[1],0,0],h,[-1,1,0/3,0],c,[1,1,0/3,0],c));return _};e.prototype.WB=function(e,r,t){var i=r.size[1]/2;var a=r.pitch,n=r.zoom,o=r.rotation;var f=t.X(0,e);var s=t.X(r.size[0],e);var u=t.X(0,e+0);var l=t.X(r.size[0],e+0);var v=.5;var c=t.pz().dz()*v;var h=0;var d=r.fov/Math.PI/2/2;var _=0-d;var g=0+d;var y=-0;var m=1;var p=t.map.mapStyle.dn(30001,1,n);var b=[.988,.976,.949,1];if(p&&p.faceColor){b=p.faceColor.normalize()}var x=__spreadArrays(b)||[1,1,1,0];x[3]=0;var C=__spreadArrays(b)||[1,1,1,Math.min(.1,1/n)];C[3]=Math.min(.1,5/n);var M=new Float32Array(__spreadArrays([f[0],f[1],h,0,1,0,_,m,f[0],f[1],c,0,1,0,_,y,s[0],s[1],h,0,1,0,g,m,s[0],s[1],h,0,1,0,g,m,s[0],s[1],c,0,1,0,g,y,f[0],f[1],c,0,1,0,_,y,u[0],u[1],0,0],C,[u[0],u[1],c/3,0],x,[l[0],l[1],0,0],C,[l[0],l[1],0,0],C,[l[0],l[1],c/3,0],x,[u[0],u[1],c/3,0],x));return M};e.prototype.yz=function(e,r,t,i){var a=Math.max(e/100-.4,0);var n=Math.max((i-24)*4,0)/100;return t*(a-n)};return e}(LayerRender);function step(e,r,t){return Math.max(Math.min(e,r),t)}var indoorStyles={PoiStyle:[{$:{mainkey:\\"10001\\",subkey:\\"1\\"},StyleItem:[{$:{level:\\"18,19,20\\",desc:\\"50,2,1,1,12,0xff696F71,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"2\\"},StyleItem:[{$:{level:\\"17,18,19,20\\",desc:\\"50,7,1,1,12,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"3\\"},StyleItem:[{$:{level:\\"19,20\\",desc:\\"50,8,1,1,12,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"4\\"},StyleItem:[{$:{level:\\"18\\",desc:\\"50,25,2,1,0,0xff84638E,0xffffffff,0x0,0\\"}},{$:{level:\\"19,20\\",desc:\\"50,25,1,1,12,0xff84638E,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"5\\"},StyleItem:[{$:{level:\\"17,18,19,20\\",desc:\\"50,59,2,1,0,0xff84638E,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"6\\"},StyleItem:[{$:{level:\\"18,19,20\\",desc:\\"50,3,1,1,12,0xff84638E,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"7\\"},StyleItem:[{$:{level:\\"18,19,20\\",desc:\\"50,4,1,1,12,0xff816B4E,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"8\\"},StyleItem:[{$:{level:\\"17,18,19,20\\",desc:\\"50,9,1,1,12,0xff935676,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"9\\"},StyleItem:[{$:{level:\\"18,19,20\\",desc:\\"50,10,1,1,12,0xff935676,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"10\\"},StyleItem:[{$:{level:\\"18,19,20\\",desc:\\"50,14,1,1,12,0xff696F71,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"11\\"},StyleItem:[{$:{level:\\"18,19,20\\",desc:\\"50,15,1,1,12,0xff696F71,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"12\\"},StyleItem:[{$:{level:\\"18,19,20\\",desc:\\"50,17,1,1,12,0xff816B4E,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"13\\"},StyleItem:[{$:{level:\\"18,19,20\\",desc:\\"50,18,1,1,12,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"14\\"},StyleItem:[{$:{level:\\"18,19,20\\",desc:\\"50,19,1,1,12,0xff696F71,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"15\\"},StyleItem:[{$:{level:\\"18,19,20\\",desc:\\"50,22,1,1,12,0xff696F71,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"16\\"},StyleItem:[{$:{level:\\"20\\",desc:\\"50,24,1,1,12,0xff696F71,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"17\\"},StyleItem:[{$:{level:\\"19,20\\",desc:\\"50,1,0,1,12,0xff696F71,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"18\\"},StyleItem:[{$:{level:\\"18,19,20\\",desc:\\"50,27,1,1,12,0xff84638E,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"19\\"},StyleItem:[{$:{level:\\"18,19,20\\",desc:\\"50,36,1,1,12,0xff8E3A3D,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"20\\"},StyleItem:[{$:{level:\\"17,18,19,20\\",desc:\\"50,39,1,1,12,0xff935676,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"21\\"},StyleItem:[{$:{level:\\"18,19\\",desc:\\"50,44,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}},{$:{level:\\"20\\",desc:\\"50,44,1,1,12,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"22\\"},StyleItem:[{$:{level:\\"18,19\\",desc:\\"50,45,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}},{$:{level:\\"20\\",desc:\\"50,45,1,1,12,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"23\\"},StyleItem:[{$:{level:\\"18,19\\",desc:\\"50,46,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}},{$:{level:\\"20\\",desc:\\"50,46,1,1,12,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"24\\"},StyleItem:[{$:{level:\\"18,19\\",desc:\\"50,47,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}},{$:{level:\\"20\\",desc:\\"50,47,1,1,12,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"25\\"},StyleItem:[{$:{level:\\"18,19\\",desc:\\"50,48,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}},{$:{level:\\"20\\",desc:\\"50,48,1,1,12,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"26\\"},StyleItem:[{$:{level:\\"18,19\\",desc:\\"50,49,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}},{$:{level:\\"20\\",desc:\\"50,49,1,1,12,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"27\\"},StyleItem:[{$:{level:\\"18,19\\",desc:\\"50,50,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}},{$:{level:\\"20\\",desc:\\"50,50,1,1,12,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"28\\"},StyleItem:[{$:{level:\\"18,19\\",desc:\\"50,51,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}},{$:{level:\\"20\\",desc:\\"50,51,1,1,12,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"29\\"},StyleItem:[{$:{level:\\"18,19\\",desc:\\"50,52,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}},{$:{level:\\"20\\",desc:\\"50,52,1,1,12,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"30\\"},StyleItem:[{$:{level:\\"18,19\\",desc:\\"50,53,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}},{$:{level:\\"20\\",desc:\\"50,53,1,1,12,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"31\\"},StyleItem:[{$:{level:\\"18,19\\",desc:\\"50,54,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}},{$:{level:\\"20\\",desc:\\"50,54,1,1,12,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"32\\"},StyleItem:[{$:{level:\\"18,19\\",desc:\\"50,55,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}},{$:{level:\\"20\\",desc:\\"50,55,1,1,12,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"33\\"},StyleItem:[{$:{level:\\"18,19\\",desc:\\"50,56,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}},{$:{level:\\"20\\",desc:\\"50,56,1,1,12,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"34\\"},StyleItem:[{$:{level:\\"18,19\\",desc:\\"50,57,2,1,0,0xff696F71,0xffffffff,0x0,0\\"}},{$:{level:\\"20\\",desc:\\"50,57,1,1,12,0xff696F71,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"35\\"},StyleItem:[{$:{level:\\"17,18,19,20\\",desc:\\"50,6,2,1,0,0xff696F71,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"36\\"},StyleItem:[{$:{level:\\"18,19,20\\",desc:\\"50,12,1,1,12,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"37\\"},StyleItem:[{$:{level:\\"19,20\\",desc:\\"50,13,1,1,12,0xff696F71,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"38\\"},StyleItem:[{$:{level:\\"18,19,20\\",desc:\\"50,16,1,1,12,0xff696F71,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"39\\"},StyleItem:[{$:{level:\\"17\\",desc:\\"50,20,2,1,0,0xff69859F,0xffffffff,0x0,0\\"}},{$:{level:\\"18,19,20\\",desc:\\"50,20,1,1,12,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"40\\"},StyleItem:[{$:{level:\\"17\\",desc:\\"50,5,2,1,0,0xff69859F,0xffffffff,0x0,0\\"}},{$:{level:\\"18,19,20\\",desc:\\"50,5,1,1,12,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"41\\"},StyleItem:[{$:{level:\\"20\\",desc:\\"50,28,1,1,12,0xff696F71,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"42\\"},StyleItem:[{$:{level:\\"18,19,20\\",desc:\\"50,29,1,1,12,0xff4C6776,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"43\\"},StyleItem:[{$:{level:\\"18,19,20\\",desc:\\"50,31,1,1,12,0xff000000,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"44\\"},StyleItem:[{$:{level:\\"18,19,20\\",desc:\\"50,32,2,1,0,0xff4C6776,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"45\\"},StyleItem:[{$:{level:\\"18,19,20\\",desc:\\"50,33,2,1,0,0xff4C6776,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"46\\"},StyleItem:[{$:{level:\\"18\\",desc:\\"50,34,2,1,0,0xff935676,0xffffffff,0x0,0\\"}},{$:{level:\\"19,20\\",desc:\\"50,34,1,1,12,0xff935676,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"47\\"},StyleItem:[{$:{level:\\"18,19,20\\",desc:\\"50,35,2,1,0,0xff4C6776,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"48\\"},StyleItem:[{$:{level:\\"19,20\\",desc:\\"50,37,1,1,12,0xff4C6776,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"49\\"},StyleItem:[{$:{level:\\"18,19,20\\",desc:\\"50,38,2,1,0,0xff4C6776,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"50\\"},StyleItem:[{$:{level:\\"18,19,20\\",desc:\\"50,42,1,1,12,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"51\\"},StyleItem:[{$:{level:\\"18,19,20\\",desc:\\"50,41,1,1,12,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"52\\"},StyleItem:[{$:{level:\\"20\\",desc:\\"50,43,1,1,12,0xff696F71,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"53\\"},StyleItem:[{$:{level:\\"17,18,19,20\\",desc:\\"50,58,2,1,0,0xff696F71,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"54\\"},StyleItem:[{$:{level:\\"17,18,19,20\\",desc:\\"50,21,1,1,12,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"55\\"},StyleItem:[{$:{level:\\"17,18,19,20\\",desc:\\"50,30,1,1,12,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"56\\"},StyleItem:[{$:{level:\\"19,20\\",desc:\\"50,1,0,1,12,0xff000000,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"57\\"},StyleItem:[{$:{level:\\"18,19,20\\",desc:\\"50,23,2,1,0,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"58\\"},StyleItem:[{$:{level:\\"18,19,20\\",desc:\\"50,40,2,1,0,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"59\\"},StyleItem:[{$:{level:\\"18,19,20\\",desc:\\"50,11,2,1,0,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"60\\"},StyleItem:[{$:{level:\\"16,17\\",desc:\\"50,1,0,1,20,0xff6590a6,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"62\\"},StyleItem:[{$:{level:\\"17,18,19,20\\",desc:\\"50,61,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"63\\"},StyleItem:[{$:{level:\\"17,18,19,20\\",desc:\\"50,60,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"64\\"},StyleItem:[{$:{level:\\"17\\",desc:\\"50,62,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}},{$:{level:\\"18,19,20\\",desc:\\"50,62,1,1,12,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"65\\"},StyleItem:[{$:{level:\\"17\\",desc:\\"50,63,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}},{$:{level:\\"18,19,20\\",desc:\\"50,63,1,1,12,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"66\\"},StyleItem:[{$:{level:\\"17\\",desc:\\"50,64,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}},{$:{level:\\"18,19,20\\",desc:\\"50,64,1,1,12,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"67\\"},StyleItem:[{$:{level:\\"17\\",desc:\\"50,65,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}},{$:{level:\\"18,19,20\\",desc:\\"50,65,1,1,12,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"68\\"},StyleItem:[{$:{level:\\"17\\",desc:\\"50,66,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}},{$:{level:\\"18,19,20\\",desc:\\"50,66,1,1,12,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"69\\"},StyleItem:[{$:{level:\\"17\\",desc:\\"50,67,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}},{$:{level:\\"18,19,20\\",desc:\\"50,67,1,1,12,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"70\\"},StyleItem:[{$:{level:\\"17\\",desc:\\"50,68,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}},{$:{level:\\"18,19,20\\",desc:\\"50,68,1,1,12,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"71\\"},StyleItem:[{$:{level:\\"17\\",desc:\\"50,69,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}},{$:{level:\\"18,19,20\\",desc:\\"50,69,1,1,12,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"72\\"},StyleItem:[{$:{level:\\"17\\",desc:\\"50,70,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}},{$:{level:\\"18,19,20\\",desc:\\"50,70,1,1,12,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"73\\"},StyleItem:[{$:{level:\\"17,18,19,20\\",desc:\\"50,71,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"74\\"},StyleItem:[{$:{level:\\"17,18,19,20\\",desc:\\"50,72,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"75\\"},StyleItem:[{$:{level:\\"18,19\\",desc:\\"50,73,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}},{$:{level:\\"20\\",desc:\\"50,73,1,1,12,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"76\\"},StyleItem:[{$:{level:\\"18,19\\",desc:\\"50,74,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}},{$:{level:\\"20\\",desc:\\"50,74,1,1,12,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"77\\"},StyleItem:[{$:{level:\\"18,19\\",desc:\\"50,75,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}},{$:{level:\\"20\\",desc:\\"50,75,1,1,12,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"78\\"},StyleItem:[{$:{level:\\"18,19\\",desc:\\"50,76,2,1,0,0xff62686B,0xffffffff,0x0,0\\"}},{$:{level:\\"20\\",desc:\\"50,76,1,1,12,0xff62686B,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"79\\"},StyleItem:[{$:{level:\\"19,20\\",desc:\\"50,81,1,1,12,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"80\\"},StyleItem:[{$:{level:\\"19,20\\",desc:\\"50,89,1,1,12,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"81\\"},StyleItem:[{$:{level:\\"19,20\\",desc:\\"50,85,1,1,12,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"82\\"},StyleItem:[{$:{level:\\"19,20\\",desc:\\"50,90,1,1,12,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"83\\"},StyleItem:[{$:{level:\\"19,20\\",desc:\\"50,83,1,1,12,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"84\\"},StyleItem:[{$:{level:\\"19,20\\",desc:\\"50,103,1,1,12,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"85\\"},StyleItem:[{$:{level:\\"19,20\\",desc:\\"50,98,1,1,12,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"86\\"},StyleItem:[{$:{level:\\"19,20\\",desc:\\"50,86,1,1,12,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"87\\"},StyleItem:[{$:{level:\\"19,20\\",desc:\\"50,87,1,1,12,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"88\\"},StyleItem:[{$:{level:\\"19,20\\",desc:\\"50,111,1,1,12,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"89\\"},StyleItem:[{$:{level:\\"19,20\\",desc:\\"50,88,1,1,12,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"90\\"},StyleItem:[{$:{level:\\"19,20\\",desc:\\"50,91,1,1,12,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"91\\"},StyleItem:[{$:{level:\\"19,20\\",desc:\\"50,93,1,1,12,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"92\\"},StyleItem:[{$:{level:\\"19,20\\",desc:\\"50,113,1,1,12,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"93\\"},StyleItem:[{$:{level:\\"19,20\\",desc:\\"50,95,1,1,12,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"94\\"},StyleItem:[{$:{level:\\"19,20\\",desc:\\"50,100,1,1,12,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"95\\"},StyleItem:[{$:{level:\\"19,20\\",desc:\\"50,97,1,1,12,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"96\\"},StyleItem:[{$:{level:\\"19,20\\",desc:\\"50,94,1,1,12,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"97\\"},StyleItem:[{$:{level:\\"18,19,20\\",desc:\\"50,108,1,1,12,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"98\\"},StyleItem:[{$:{level:\\"18,19,20\\",desc:\\"50,1,2,1,0,0xff69859F,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"99\\"},StyleItem:[{$:{level:\\"18,19,20\\",desc:\\"50,1,0,1,12,0xff696F71,0xffffffff,0x0,1\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"105\\"},StyleItem:[{$:{level:\\"16,17,18\\",desc:\\"50,1,0,1,14,0xff696F71,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"106\\"},StyleItem:[{$:{level:\\"19,20\\",desc:\\"50,1,0,1,12,0xff4d4e51,0xffffffff,0x0,0\\"}}]},{$:{mainkey:\\"10001\\",subkey:\\"107\\"},StyleItem:[{$:{level:\\"16,17,18,19,20\\",desc:\\"50,109,1,1,12,0xff4d4e51,0xffffffff,0x0,0\\"}}]}],LineStyle:[{$:{mainkey:\\"20001\\",subkey:\\"1\\"},StyleItem:[{$:{level:\\"15,16,17,18,19,20\\",desc:\\"88,2,10,0,0,0,0xffe68e00,0xffe68e00,0xffe68e00,0xffe68e00\\"}}]},{$:{mainkey:\\"20001\\",subkey:\\"2\\"},StyleItem:[{$:{level:\\"15,16,17,18,19,20\\",desc:\\"88,2,8,0,0,0,0xffababab,0xffababab,0xff5e492f,0xffffe080\\"}}]}],RegionStyle:[{$:{mainkey:\\"30001\\",subkey:\\"1\\"},StyleItem:[{$:{level:\\"15,16,17,18,19,20\\",desc:\\"90,1,0xfffcfbed\\"}}]},{$:{mainkey:\\"30001\\",subkey:\\"99\\"},StyleItem:[{$:{level:\\"19,20\\",desc:\\"90,1,0x1a151b2b\\"}}]},{$:{mainkey:\\"30001\\",subkey:\\"98\\"},StyleItem:[{$:{level:\\"19,20\\",desc:\\"90,1,0x8c151b2b\\"}}]}],BuildingStyle:[{$:{mainkey:\\"30001\\",subkey:\\"2\\"},StyleItem:[{$:{level:\\"17,18,19,20\\",desc:\\"99,0xffe6e6e6,0xff858585,0xffcfcfcf,0xffb8b8b8,255\\"}}]},{$:{mainkey:\\"30001\\",subkey:\\"3\\"},StyleItem:[{$:{level:\\"15,16,17,18,19,20\\",desc:\\"99,0xffe6e6e6,0xff858585,0xffcfcfcf,0xffb8b8b8,255\\"}}]},{$:{mainkey:\\"30001\\",subkey:\\"4\\"},StyleItem:[{$:{level:\\"15,16,17,18,19,20\\",desc:\\"99,0xffbfd6e9 ,0xff6f7c87,0xffacc0d1,0xff99abba,255\\"}}]},{$:{mainkey:\\"30001\\",subkey:\\"5\\"},StyleItem:[{$:{level:\\"17,18,19,20\\",desc:\\"99,0xffcce3e8 ,0xff778487,0xffb7ccd0,0xffa3b6ba,255\\"}}]},{$:{mainkey:\\"30001\\",subkey:\\"6\\"},StyleItem:[{$:{level:\\"15,16,17,18,19,20\\",desc:\\"99,0xffcce3e8,0xff778487,0xffb7ccd0,0xffa3b6ba,255\\"}}]},{$:{mainkey:\\"30001\\",subkey:\\"7\\"},StyleItem:[{$:{level:\\"15,16,17,18,19,20\\",desc:\\"99,0xffe5dae8,0xff857f87,0xffcec4d0,0xffb7aeba,255\\"}}]},{$:{mainkey:\\"30001\\",subkey:\\"8\\"},StyleItem:[{$:{level:\\"15,16,17,18,19,20\\",desc:\\"99,0xfffaeccd,0xff948c79,0xffe1d4b8,0xffc8bda4,255\\"}}]},{$:{mainkey:\\"30001\\",subkey:\\"9\\"},StyleItem:[{$:{level:\\"15,16,17,18,19,20\\",desc:\\"99,0xff90bae8,0xff546d87,0xff81a7d0,0xff7395ba,255\\"}}]},{$:{mainkey:\\"30001\\",subkey:\\"10\\"},StyleItem:[{$:{level:\\"15,16,17,18,19,20\\",desc:\\"99,0xfff0e3df,0xff8f8d8c,0xffd8ccc8,0xffc0b6b2,255\\"}}]},{$:{mainkey:\\"30001\\",subkey:\\"11\\"},StyleItem:[{$:{level:\\"15,16,17,18,19,20\\",desc:\\"99,0xffbfd3e9,0xff6f7b87,0xffacbdd1,0xff99a9ba,255\\"}}]},{$:{mainkey:\\"30001\\",subkey:\\"12\\"},StyleItem:[{$:{level:\\"15,16,17,18,19,20\\",desc:\\"99,0xffdae2f4,0xff7f848f,0xffc4cbdb,0xffaeb5c3,255\\"}}]},{$:{mainkey:\\"30001\\",subkey:\\"13\\"},StyleItem:[{$:{level:\\"15,16,17,18,19,20\\",desc:\\"99,0xff95e3f5,0xff598791,0xff86ccdc,0xff77b6c4,255\\"}}]},{$:{mainkey:\\"30001\\",subkey:\\"14\\"},StyleItem:[{$:{level:\\"15,16,17,18,19,20\\",desc:\\"99,0xffc9edf5,0xff778d91,0xffb5d5dc,0xffa1bec4,255\\"}}]},{$:{mainkey:\\"30001\\",subkey:\\"15\\"},StyleItem:[{$:{level:\\"15,16,17,18,19,20\\",desc:\\"99,0xfff4c4ba,0xff8f726d,0xffdbb0a7,0xffc39d95,255\\"}}]},{$:{mainkey:\\"30001\\",subkey:\\"16\\"},StyleItem:[{$:{level:\\"15,16,17,18,19,20\\",desc:\\"99,0xffdbe8b3,0xff7f8768,0xffc5d0a1,0xffafba8f,255\\"}}]},{$:{mainkey:\\"30001\\",subkey:\\"17\\"},StyleItem:[{$:{level:\\"15,16,17,18,19,20\\",desc:\\"99,0xfff5cedc,0xff917a82,0xffdcb9c6,0xffc4a5b0,255\\"}}]}]};var allowedStyleKeys=[\\"strokeColor\\",\\"strokeOpacity\\",\\"strokeWeight\\",\\"fillColor\\",\\"fillOpacity\\",\\"strokeStyle\\",\\"strokeDasharray\\",\\"fontSize\\"];var indoorStyleSet={setOptions:function(e){},init:function(){this.NC={};this.UC(indoorStyles);this.WC=[];return this.NC},GC:function(e){var r=AMap.getConfig()[\\"protocol\\"]+\\"://webapi.amap.com\\"+\\"/images/indoor_icon/\\"+(\\"36/\\"+e+\\"@2x\\")+\\".png\\";return r},HC:function(e){var r=true;for(var t=13;t<=22;t++){var i=this.VC(e,t);if(i&&(i.fontSize>0||i.iconId)){r=false;break}}return r},VC:function(e,r){return this.Tn(e,r)},ZC:function(e,r){return this.Tn(e,r)},Pr:function(e,r){return this.Tn(e,r)},YC:function(e,r){var t=allowedStyleKeys;if(r){for(var i in r){if(r.hasOwnProperty(i)&&t.indexOf(i)>=0&&e[i]===void 0){e[i]=r[i]}}}return e},JC:function(e,r){if(!e){return null}var t=allowedStyleKeys;var i={};for(var a=0,n=t.length;a<n;a++){var o=t[a];if(e.hasOwnProperty(o)&&e[o]!==void 0){i[o]=e[o]}}this.YC(i,r);return i},Tn:function(e,r){var t=e[0];var i=e[1];var a=t+\\"_\\"+i;r=Math.round(r);var n=this.NC[a];if(!n){if(this.WC.indexOf(a)<0){this.WC.push(a)}return null}for(var o=0,f=n.length;o<f;o++){if(n[o].levels.indexOf(\\"\\"+r)>=0){return n[o].styleOpts}}if(r>20){var s=n[n.length-1];if(s.levels.indexOf(\\"20\\")>=0){s.levels.push(\\"\\"+r);return s.styleOpts}}return null},UC:function(e){for(var r in e){if(e.hasOwnProperty(r)){this.XC(e[r],r)}}},XC:function(e,r){for(var t=0,i=e.length;t<i;t++){this.qC(e[t],r)}},qC:function(e,r){var t=e[\\"$\\"];if(!t){return}var i=t[\\"mainkey\\"];var a=t[\\"subkey\\"];var n=e[\\"StyleItem\\"];var o=i+\\"_\\"+a;if(this.NC[o]);this.NC[o]=this.QC(n,r)},QC:function(e,r){var t=[];for(var i=0,a=e.length;i<a;i++){var n=this.KC(e[i],r);if(!n){continue}t.push(n)}return t},KC:function(e,r){var t=e[\\"$\\"];if(!t){return}var i={};i[\\"levels\\"]=t[\\"level\\"].split(\\",\\");i[\\"desc\\"]=t[\\"desc\\"].split(\\",\\");i[\\"styleOpts\\"]=this.$I(i,i.desc,r);i[\\"styleOpts\\"][\\"levels\\"]=i.levels;return i},BI:function(e){var r=[];for(var t=0,i=e.length;t<i;t+=2){r.push(parseInt(e.substr(t,2),16))}r.push(r.shift());r=r.slice(0,3);var a=\\"rgb(\\"+r.join(\\",\\")+\\")\\";return a},WI:function(e){if(e.trim){e=e.trim()}var r=this.BI(e.substr(2,8));return r},GI:function(){return this.HI++},$I:function(e,r,t){var i;switch(t){case\\"PoiStyle\\":i={iconId:parseInt(r[1],10),fontSize:Math.min(15,parseInt(r[4],10)||0),fillColor:this.WI(r[5]),strokeColor:this.WI(r[6]),VI:parseInt(r[8],10)===0};if(i.iconId===1){i.iconId=0}break;case\\"LineStyle\\":i={fillColor:\\"rgb(252, 249, 242)\\",strokeColor:this.WI(r[7]),strokeWeight:Math.max(2,Math.round(parseInt(r[2],10)/3))};break;case\\"RegionStyle\\":i={fillColor:this.WI(r[2])};break;case\\"BuildingStyle\\":i={fillColor:this.WI(r[1]),strokeColor:this.WI(r[2])};break;default:return null}i[\\"_uid\\"]=this.GI();return i}};var assign$1=M[\\"lodash\\"][\\"assign\\"];var outLineStyle={high:{fillColor:\\"rgb(252, 249, 242)\\",strokeColor:\\"rgb(230,142,0)\\"},unHigh:{fillColor:\\"rgb(252, 249, 242)\\",strokeColor:\\"rgb(171,171,171)\\"}};var IndoorRender=function(r){__extends(e,r);function e(){var e=r.call(this)||this;e._config=AMap[\\"getConfig\\"]();e.YI=[17,zoomRange[1]];e.l$=indoorStyleSet.init();e.a$=new AMap[\\"LabelsLayer\\"]({opacity:1,collision:true,allowCollision:true,zIndex:9,zooms:[17,zoomRange[1]],visible:false});e.GL=false;e.i$=false;e.WL=\\"\\";e._map=null;e.f$=false;e.UL=null;e.pD=false;e.t$();e.sZ=false;return e}e.prototype[\\"getContainer\\"]=function(){return document.createElement(\\"div\\")};e.prototype.renderFrame=function(e,r,t,i,a){};e.prototype.render=function(e){var r=this;var t=e.data;if(!t||t.length<1||!this.gs){return false}this._map=this.gs.map;if(!this.sZ){this.sZ=true;this._map.on(\\"click\\",function(e){if(r.e$){r.e$.hide()}r.gs.oZ()})}var i=this.gs.ZI();var a=i.indoor,n=i.floorInfo;if(i&&i[\\"visible\\"]===false){return false}var o=this.qI(t);this.UL=t;if(!o){return false}if(!i[\\"changeFloor\\"]){var f={centerId:o};this.gs.setRenderData(f)}var s=Object.keys(t);for(var u=0;u<s.length;u++){var l=s[u];var v=t[l];var c=v[\\"building\\"];if(!c||!c[\\"properties\\"]){continue}var h=c[\\"properties\\"][\\"outside_outline\\"];var d=this.gs[\\"getIntersect\\"](h)||this.gs[\\"getRingInRing\\"](h);if(!d){continue}if(!a[l]){var _=\\"1\\";if(n[l]){_=n[l]}this.gS(v,_)}else{var g=a[l][\\"curFloor\\"];var _=n[l];if(g!==_){this.gS(v,_)}}}};e.prototype.HF=function(e){this.gs=e};e.prototype.t$=function(){var e=this;if(!this.i$){AMap[\\"plugin\\"](\\"AMap.IndoorMapFloorBar\\",function(){e.i$=true})}};e.prototype.QI=function(e,r){var o=this;var t=this.gs.ZI();var i=t.floorInfo,a=t.showId,n=t.centerId,f=t.hideFloorBar;var s=null;var u=null;var l=Number(i[r])||1;var v=e.properties;if(v&&v[\\"floor_nonas\\"]){s=v[\\"floor_nonas\\"];u=v[\\"floor_indexs\\"]}if(!s||!u){return false}if(u.length>1){if(u[0]>u[1]){s=s.reverse();u=u.reverse()}}if(!this.e$&&this.i$){if(M&&M[\\"IndoorMapFloorBar\\"]){this.e$=new M[\\"IndoorMapFloorBar\\"]({floors:s,floorIndexs:u,currentFloor:l});this.WL=n;this.gs.setBar(this.e$);this.gs.setRenderData({barCenterId:this.WL})}if(!this.e$){return false}this._map.addControl(this.e$);this.e$.on(\\"floorchange\\",function(e){o.pD=true;var r=e[\\"currentIndex\\"];var t=o.gs.ZI();var i=r;var a=t.centerId;o.gs.n$(a,i);var n=o._map.Mv.getSource(o.gs.co());if(a){o.gs.setRenderData({changeFloor:true});n.JR(a,i)}})}else if(this.e$){this.WL=n;this.e$[\\"setOption\\"]({floors:s,floorIndexs:u,currentFloor:l});this.gs.setRenderData({barCenterId:this.WL})}if(f&&this.e$){this.e$.hide()}if(!this.GL&&this._map){this.GL=true;this._map.on(\\"moveend\\",function(){var e=o.vD();if(e){var r={centerId:e};o.gs.setRenderData(r)}o.gs.setRenderData({changeFloor:false});o.$ee();o.gs.uD()})}};e.prototype.$ee=function(){var e=1;var r=this.gs.ZI();var t=r.centerId;if(t===this.WL){return false}if(r[\\"floorInfo\\"][t]){e=r[\\"floorInfo\\"][t]}if(this.UL&&this.UL[t]&&this.UL[t][\\"building\\"]){var i=this.UL[t][\\"building\\"];var a=i.properties;var n=null;var o=null;if(a&&a[\\"floor_nonas\\"]){n=a[\\"floor_nonas\\"];o=a[\\"floor_indexs\\"]}if(!n||!o){return false}if(o.length>1){if(o[0]>o[1]){n=n.reverse();o=o.reverse()}}if(this.e$){this.e$[\\"setOption\\"]({floors:n,floorIndexs:o,currentFloor:Number(e)});this.WL=t;this.gs.setRenderData({barCenterId:this.WL})}}};e.prototype.qI=function(e){var r=this._map.getCenter().toJSON();var t=null;var i=\\"\\";var a=Object.keys(e);for(var n=0;n<a.length;n++){var o=a[n];var f=e[o];if(f[\\"building\\"]&&f[\\"building\\"][\\"properties\\"]&&f[\\"building\\"][\\"properties\\"][\\"centerPoint\\"]){var s=f[\\"building\\"][\\"properties\\"][\\"centerPoint\\"];var u=new AMap[\\"LngLat\\"](s[0],s[1]);var l=AMap[\\"GeometryUtil\\"][\\"distance\\"](r,u);if(t){if(l<t){t=l;i=o}}else{t=l;i=o}}}return i};e.prototype.vD=function(){var e=this._map.getCenter().toJSON();var r=null;var t=\\"\\";var i=this.gs.ZI();var a=i[\\"indoor\\"];var n=Object.keys(a);for(var o=0;o<n.length;o++){var f=n[o];var s=a[f];if(s[\\"buildingCenter\\"]){var u=s[\\"buildingCenter\\"];var l=new AMap[\\"LngLat\\"](u[0],u[1]);var v=AMap[\\"GeometryUtil\\"][\\"distance\\"](e,l);if(r){if(v<r){r=v;t=f}}else{r=v;t=f}}}return t};e.prototype.fD=function(e,r){var t=this.gs.ZI();if(!t[\\"floorInfo\\"]){t[\\"floorInfo\\"]={}}t[\\"floorInfo\\"][e]=r;this.gs.setRenderData(t)};e.prototype.gS=function(e,r){var t=Object.keys(e[\\"data\\"])[0];if(r){t=r}if(!e[\\"data\\"][t]){return false}var i=e[\\"data\\"][t][\\"floor\\"];var a=e[\\"data\\"][t][\\"id\\"];if(!i||!a){return false}var n=this.gs.ZI();this.fD(a,r);var o=n[\\"centerId\\"];if(o===a){this.QI(e[\\"building\\"],a)}this.o$(i,a,e[\\"building\\"],r);this.gs.mD(true)};e.prototype.ar=function(e){var r=this.gs.ZI();var t=r.indoor;if(t&&t[e]){if(t[e][\\"polygons\\"]){this.gs.$F.remove(t[e][\\"polygons\\"])}if(t[e]&&t[e][\\"markers\\"]&&t[e][\\"markers\\"].length>0){this.a$.remove(t[e][\\"markers\\"])}}};e.prototype.h$=function(e){var r=this;if(!e||!e[\\"properties\\"]){return null}var t=e[\\"properties\\"][\\"poitype\\"];var i=e[\\"position\\"];var a=t.join(\\"_\\");var n=this.l$[a]&&this.l$[a][0];var o=this.gs.ZI();if(n&&n[\\"styleOpts\\"]&&n[\\"styleOpts\\"][\\"iconId\\"]){var f=n[\\"styleOpts\\"][\\"iconId\\"];var s=indoorStyleSet.GC(f);var u={position:i,zooms:e[\\"zooms\\"],opacity:o[\\"opacity\\"],rank:3e5,icon:{size:[18,18],image:s,anchor:\\"center\\"},extData:e[\\"properties\\"],innerOverlay:true,bubble:true};if(e[\\"text\\"]){var l=n[\\"styleOpts\\"][\\"fillColor\\"]||\\"rgb(132,99,142)\\";var v=n[\\"styleOpts\\"][\\"strokeColor\\"]||\\"#FFFFFF\\";u=assign$1(u,{text:{content:e[\\"text\\"],direction:\\"bottom\\",style:{fillColor:l,strokeColor:v,fontSize:12}}})}var c=new AMap[\\"LabelMarker\\"](u);c.on(\\"click\\",function(e){if(r._map&&r._map.getStatus().isHotspot){r.bi(\\"click\\",e)}});c.on(\\"mousemove\\",function(e){if(r._map&&r._map.getStatus().isHotspot){r.bi(\\"mousemove\\",e)}});c.on(\\"mouseout\\",function(e){if(r._map&&r._map.getStatus().isHotspot){r.bi(\\"mousemove\\",e)}});return c}return null};e.prototype.bi=function(e,r){var t=\\"hotspot\\";var i;var a=r.target.getExtData();switch(e){case\\"click\\":i=t+e;break;case\\"mouseover\\":i=t+\\"over\\";break;case\\"mouseout\\":i=t+\\"out\\";break}if(i){var n=this._map.getProjection();var o=n[\\"unproject\\"](r[\\"lnglat\\"][\\"lng\\"],r[\\"lnglat\\"][\\"lat\\"]),f=o[0],s=o[1];var u={type:i,id:a[\\"pid\\"],name:a[\\"name\\"],lnglat:r[\\"lnglat\\"],originEvent:r[\\"originEvent\\"]};this._map.emit(i,u)}};e.prototype.o$=function(e,r,t,i){var s=this;if(!this._map||!r){return false}var a=this.gs.ZI();this.ar(r);var O=this._map[\\"getZoom\\"]();var n=[];var o=[];var f=e[\\"shops\\"];var u=e[\\"floor\\"];var l=e[\\"cons\\"];var B={building_id:r,floor:u};var D=f.length;var v=[];var c=[];var h=[];var d=[];var _=[];for(var g=0;g<D;g++){var y=f[g];var m=y.properties,p=y.geometry;var U=assign$1({shop:{id:m[\\"cpid\\"],name:m[\\"name\\"]}},B);var b=\\"#FFFFFF\\";var x=\\"#FE9A2E\\";if(m&&m[\\"regiontype\\"]){var C=m[\\"regiontype\\"].join(\\"_\\");var M=this.l$[C]&&this.l$[C][0];if(M&&M[\\"styleOpts\\"]){b=M[\\"styleOpts\\"][\\"fillColor\\"];x=M[\\"styleOpts\\"][\\"strokeColor\\"]}}c.push(b);h.push(x);_.push(a[\\"opacity\\"]);d.push({indoorPolygon:true,indoorData:U,id:r});v.push(p.coordinates);if(m[\\"zoom_min\\"]&&m[\\"zoom_max\\"]&&m[\\"font_anthor_point\\"]){var S=m[\\"font_anthor_point\\"];var w={position:[S[0],S[1]],text:m[\\"name\\"],properties:m,zooms:[m[\\"zoom_min\\"],m[\\"zoom_max\\"]]};var k=this.h$(w);if(k){o.push(k)}}}var T=new AMap[\\"Polygon\\"]({bubble:true,path:v,innerOverlay:true,cursor:a[\\"cursor\\"],zooms:this.YI,async:true,fillColor:function(e){return c[e]},strokeColor:function(e){return h[e]},fillOpacity:function(e){return _[e]},strokeOpacity:a[\\"opacity\\"],strokeWeight:1,zIndex:a[\\"zIndex\\"]+2});T.on(\\"click\\",function(e){var r=d[e.vectorIndex];var t=r.id;if(s.e$){s.e$.show()}if(t){var i={centerId:t,changeFloor:true};s.gs.setRenderData(i);s.$ee();s.gs.uD()}r[\\"indoorData\\"][\\"ext\\"]={type:\\"polygon\\",data:e};s.gs.emit(\\"click\\",r[\\"indoorData\\"])});T.on(\\"mouseover\\",function(e){for(var r=0,t=d.length;r<t;r++){var i=d[r];if(i[\\"originFillOpacity\\"]&&i[\\"originFillColor\\"]){c[r]=i[\\"originFillColor\\"];_[r]=i[\\"originFillOpacity\\"]}}var a=d[e.vectorIndex];var n=e.lnglat;a[\\"originFillOpacity\\"]=_[e.vectorIndex];a[\\"originFillColor\\"]=c[e.vectorIndex];c[e.vectorIndex]=\\"#B45F04\\";_[e.vectorIndex]=.4;if(a[\\"indoorData\\"]&&a[\\"indoorData\\"][\\"shop\\"]&&a[\\"indoorData\\"][\\"shop\\"][\\"name\\"]){var o=a[\\"indoorData\\"][\\"shop\\"][\\"name\\"];var f=\\"<div style=\\"+\'\\"padding: 5px; border: 1px solid rgba(41,38,36,0.87);; white-space:nowrap; border-radius: 2px;color: #000000; background: #FBF5EF; font-size:12px;\\">\'+o+\\"</div>\\";s.JT=new AMap[\\"Marker\\"]({position:n,content:f,anchor:\\"bottom-left\\",map:s._map,noSelect:true})}T.to()});T.on(\\"mouseout\\",function(e){for(var r=0,t=d.length;r<t;r++){var i=d[r];if(i[\\"originFillOpacity\\"]&&i[\\"originFillColor\\"]){c[r]=i[\\"originFillColor\\"];_[r]=i[\\"originFillOpacity\\"]}}if(s.JT){s._map.remove(s.JT)}T.to()});n.push(T);var A=null;var N=[];if(u[\\"geometry\\"]&&u[\\"geometry\\"][\\"coordinates\\"]){var b=outLineStyle[\\"unHigh\\"][\\"fillColor\\"];var x=outLineStyle[\\"unHigh\\"][\\"strokeColor\\"];if(a[\\"centerId\\"]===r){x=outLineStyle[\\"high\\"][\\"strokeColor\\"]}var I=u[\\"geometry\\"][\\"coordinates\\"];if(u[\\"geometry\\"][\\"type\\"]&&u[\\"geometry\\"][\\"type\\"]===\\"MultiPolygon\\"){if(I[0]&&I[0].length>1){var H=[];for(var $=0;$<I[0].length;$++){H.push(I[0][$])}I=H}}for(var F=0;F<I.length;F++){var P=new AMap[\\"Polygon\\"]({bubble:true,async:true,strokeWeight:3,innerOverlay:true,zooms:this.YI,path:I[F],fillColor:b,strokeColor:x,zIndex:a[\\"zIndex\\"]+1,fillOpacity:a[\\"opacity\\"],strokeOpacity:a[\\"opacity\\"],extData:{indoorPolygon:true,id:r}});A=true;P.on(\\"click\\",function(e){var r=e.target.getExtData();var t=r.id;if(s.e$){s.e$.show()}if(t){var i={centerId:t,changeFloor:true};s.gs.setRenderData(i)}s.$ee();s.gs.uD()});N.push(P);n.push(P)}}if(a[\\"showId\\"]){this.gs.setRenderData({centerId:a[\\"showId\\"]})}this.gs.uD();this.gs.$F.add(n);if(!a[\\"indoor\\"][r]){a[\\"indoor\\"][r]={}}a[\\"indoor\\"][r][\\"curFloor\\"]=i;a[\\"indoor\\"][r][\\"polygons\\"]=n;a[\\"indoor\\"][r][\\"outline\\"]=N;if(t&&t[\\"properties\\"]&&t[\\"properties\\"][\\"centerPoint\\"]){a[\\"indoor\\"][r][\\"buildingCenter\\"]=t[\\"properties\\"][\\"centerPoint\\"]}if(a&&a[\\"showId\\"]===r&&A){if(a[\\"animateState\\"]!==\\"undefined\\"){this._map.setStatus({animateEnable:a[\\"animateState\\"]})}}var z=l.length;for(var L=0;L<z;L++){var G=l[L];var p=G.geometry,m=G.properties;var j=m.zoom_min,V=m.zoom_max;var w={properties:m,position:[p[\\"coordinates\\"][0],p[\\"coordinates\\"][1]],zooms:[j,V]};var k=this.h$(w);if(k){o.push(k)}}if(!this.f$){this._map.add(this.a$);this.gs.setRenderData({labelsLayer:this.a$});this.f$=true}a[\\"indoor\\"][r][\\"markers\\"]=o;if(typeof a[\\"zIndex\\"]!==\\"undefined\\"){this.a$.setzIndex(a[\\"zIndex\\"]+9)}this.a$.add(o);var W=this._map&&this._map[\\"showLabel\\"];if(a[\\"showLabels\\"]&&W){this.a$.show()}this.gs.KI(a);var E={status:0,id:r,building:{id:r}};if(t[\\"properties\\"]){var R=t[\\"properties\\"];E[\\"building\\"][\\"name\\"]=R[\\"name_cn\\"];E[\\"building\\"][\\"lnglat\\"]=R[\\"centerPoint\\"];E[\\"building\\"][\\"floor\\"]=i||1;E[\\"building\\"][\\"floor_details\\"]={floor_indexs:R[\\"floor_indexs\\"],floor_nonas:R[\\"floor_nonas\\"],floor_names:R[\\"floor_names\\"]};this.gs.setRenderData(E)}if(!a[\\"complete\\"]){a[\\"complete\\"]={}}if(!a[\\"complete\\"][r]){a[\\"complete\\"][r]={}}if(!a[\\"complete\\"][r][i]){this.gs.emit(\\"floor_complete\\",E);a[\\"complete\\"][r][i]=true}else if(this.pD){this.gs.emit(\\"floor_complete\\",E);this.pD=false}this.gs.setRenderData(a[\\"complete\\"])};return e}(LayerRender);var map$3=M[\\"lodash\\"][\\"map\\"];var DistrictRender=function(r){__extends(e,r);function e(){var e=r.call(this)||this;e.gC={Nation_Border_China:\\"nation-stroke\\",Nation_Border_Foreign:\\"nation-stroke\\",Coastline_China:\\"coastline-stroke\\",Coastline_Foreign:\\"coastline-stroke\\",Province_Border_China:\\"province-stroke\\",Province_Border_Foreign:\\"province-stroke\\",City_Border_China:\\"city-stroke\\",County_Border_China:\\"county-stroke\\"};e.xC={};return e}e.prototype.renderFrame=function(e,r,t,i,a){if(!r.s_){return}var n=t.viewState.optimalZoom;var o=t.map.getMask();var f=r.tiles;var s=i.layer.getLayerOptions(),u=s.styles,l=s.adcode;if(i.ce){e.context.clear({depth:true})}for(var v=0,c=f;v<c.length;v++){var h=c[v];if(h.status!==TileState$1.LOADED){continue}this.Lc(e,h,t,i,u,l);this.Ic(e,h,t,i,u,l);this.lH(e,h,t,i)}this.PB(e,t,i,o)};e.prototype.destroy=function(){};e.prototype.clearStyleCache=function(){this.xC={}};e.prototype.Lc=function(e,r,t,i,a,n){var o=e.Wn();var f=r.data;var s=f.Dc;if(!s){return}s.upload(o.context,true);var u=s.zs;var l=s.Pc;var v=f.Oc;var c=i.opacity;var h=[r.Sa[0],r.Sa[1]];var d=1;if(t.viewState.viewMode===\\"3D\\"){d=t.map.getView().EF()}var _=r.zo.z;if(_<LocalZoom){var g=r.localCoord.center;h[0]+=g[0];h[1]+=g[1]}for(var y=0,m=v.jc;y<m.length;y++){var p=m[y];var b=JSON.parse(\\"\\"+p[\\"mainkey\\"]);var x=this.Mn(a,b,\\"polygon\\");var C=x[\\"fill\\"];if(!C||C.length!==4||n&&!n[b.adcode]&&!n[b.SOC]&&!n[b.adcode_pro]&&!n[b.adcode_cit]){continue}var M={u_matrix:t.viewState.mvpMatrix,u_color:[C[0],C[1],C[2],C[3]*c],u_offset:[0,0],u_localDeltaCenter:h,u_viewHeight:t.viewState.size[1],u_skyHeight:d};if(M){o.context.getExtension(\\"OES_element_index_uint\\");o.Ce(M,{a_pos:{type:\\"vec2\\",Re:u.size,offset:0,buffer:u}},p.length,l,\\"TRIANGLES\\",i.depthTest,ColorMode.Si,this.OH(i.rejectMapMask,!!t.map.getMask()),undefined,p.offset)}}};e.prototype.Ic=function(e,r,t,i,s,a){var u=this;var n=e.Vn();if(!r.data){console.error(\\"tile have no data\\");return}var o=r.data;var f=o.$c;if(!f){return}f.upload(n.context,true);var l=f.zs.buffer;var v=f.Pc.buffer;var c=o.Uc;var h=c.jc;var d=t.viewState.optimalZoom;var _=[r.Sa[0],r.Sa[1]];var g=i.opacity;var y=1;if(t.viewState.viewMode===\\"3D\\"){y=t.map.getView().EF()}var m=r.zo.z;if(m<LocalZoom){var p=r.localCoord.center;_[0]+=p[0];_[1]+=p[1]}var b={};var x={};if(h.length===1){var C=h[0][\\"mainkey\\"];var M=JSON.parse(C,undefined);var S=this.Mn(s,M,\\"line\\");b[C]=S;x[C]=M}h.sort(function(e,r){var t=e[\\"mainkey\\"];var i=JSON.parse(t,undefined);var a=u.Mn(s,i,\\"line\\");if(!b[t]){b[t]=a}if(!x[t]){x[t]=i}var n=r[\\"mainkey\\"];var o=JSON.parse(n,undefined);var f=u.Mn(s,o,\\"line\\");if(!b[n]){b[n]=f}if(!x[n]){x[n]=o}return a.zIndex-f.zIndex});for(var w=0,k=h.length;w<k;w++){var T=h[w];var C=T[\\"mainkey\\"];var M=x[C];var A=+M.type_;var S=b[C];var I=[1,0,1,0];if(S[\\"dash\\"]){I=__spreadArrays(S[\\"dash\\"])}if(A===1||A===8){I=[3,2,3,2]}else if(A===10){I=[1,2,1,2]}else if(A===11){I=[5,5,5,5]}else if(A===4){I=[2,2,6,2]}var $=S[this.gC[M.type]];if(!$||$.length!==4||a&&!a[M.adcode]&&!a[M.SOC]&&!a[M.adcode_pro]&&!a[M.adcode_cit]){continue}var F={u_matrix:t.viewState.mvpMatrix,u_meter_per_pixel:t.viewState.resolution,u_width:S[\\"stroke-width\\"],u_color:[$[0],$[1],$[2],$[3]*g],u_dash:I,u_border:0,u_localDeltaCenter:_,u_viewHeight:t.viewState.size[1],u_skyHeight:y};if(!F){continue}if(F){var P=l.size;n.context.getExtension(\\"OES_element_index_uint\\");n.Ce(F,{a_pos:{type:\\"vec2\\",buffer:l,Re:P,offset:4*0},a_normal:{type:\\"vec2\\",buffer:l,Re:P,offset:4*2},a_distance:{type:\\"float\\",buffer:l,Re:P,offset:4*4},a_dir:{type:\\"vec2\\",buffer:l,Re:P,offset:4*5}},T.length,v,\\"TRIANGLES\\",i.depthTest,ColorMode.Si,this.OH(i.rejectMapMask,!!t.map.getMask()),undefined,T.offset)}}};e.prototype.lH=function(e,r,t,i){var a=e.Wn();var n=a.context;var o=new Float32Array(this.fH(r));var f=[r.Sa[0],r.Sa[1]];var s=n.fe(o,8);var u=r.zo.z;if(u<LocalZoom){var l=r.localCoord.center;f[0]+=l[0];f[1]+=l[1]}var v=[0,1,0,0];if(u===t.viewState.optimalZoom-1){v=[1,0,0,0]}var c={u_matrix:t.viewState.mvpMatrix,u_color:v,u_offset:[0,0],u_localDeltaCenter:f,u_viewHeight:t.viewState.size[1],u_skyHeight:1};a.Ce(c,{a_pos:{type:\\"vec2\\",buffer:s,Re:0,offset:0}},6,undefined,\\"TRIANGLES\\",false,ColorMode.Si,this.BH(i.rejectMapMask,!!t.map.getMask()),undefined,0)};e.prototype.Mn=function(e,r,t){var i=JSON.stringify(r);if(this.xC[i]){return this.xC[i]}var a=[\\"nation-stroke\\",\\"coastline-stroke\\",\\"province-stroke\\",\\"city-stroke\\",\\"county-stroke\\"];var n={};if(!r){return n}if(t===\\"line\\"){for(var o=0,f=a.length;o<f;o++){var s=a[o];if(e[s]){if(AMap.Util[\\"isFunction\\"](e[s])){n[s]=AMap.Util.color2RgbaArray(e[s](r))}else{n[s]=AMap.Util.color2RgbaArray(e[s])}}}if(AMap.Util[\\"isFunction\\"](e[\\"stroke-width\\"])){n[\\"stroke-width\\"]=e[\\"stroke-width\\"](r)}else{n[\\"stroke-width\\"]=e[\\"stroke-width\\"]}if(r&&(r[\\"adcode_pro\\"]||r[\\"adcode_city\\"])){n[\\"dash\\"]=AMap.Util[\\"isFunction\\"](e[\\"dash\\"])?e[\\"dash\\"](r):e[\\"dash\\"]}if(r&&e[\\"zIndex\\"]!==undefined){n[\\"zIndex\\"]=AMap.Util[\\"isFunction\\"](e[\\"zIndex\\"])?e[\\"zIndex\\"](r):e[\\"zIndex\\"]}}else if(t===\\"polygon\\"){if(AMap.Util[\\"isFunction\\"](e[\\"fill\\"])){n[\\"fill\\"]=AMap.Util.color2RgbaArray(e[\\"fill\\"](r))}else{n[\\"fill\\"]=AMap.Util.color2RgbaArray(e[\\"fill\\"])}n[\\"stroke-width\\"]=e[\\"stroke-width\\"]}this.xC[i]=n;return n};e.prototype.PB=function(e,r,t,i){e.context.clear({stencil:true});if(i){var a=r.map.getLayerByClass(\\"AMap.MaskLayer\\");if(a){var n=r.uo.getData(a.co(),r.viewState,e.context);var o=a.getRender();if(n&&o){o.renderFrame(e,n,r,t)}}}};return e}(LayerRender);var Util$7=AMap[\\"Util\\"];var MapboxRender=function(r){__extends(e,r);function e(){var e=r.call(this)||this;e.yz=1;e.VG=1;e.VG=1;e.ZG=StencilMode.HE;return e}e.prototype.renderFrame=function(e,r,t,i,a){if(!r.s_){return}if(!r||r.tiles.length<1){return}var n=t.viewState.optimalZoom;if(n<=9.8){this.ZG=undefined}else{this.ZG=StencilMode.HE}for(var o=0;o<r.tiles.length;o++){var f=r.tiles[o];if(!f){continue}this.GG(e,f,t,i);this.Lc(e,f,t,i);this.sT(e,f,t,i);this.Ic(e,f,t,i)}if(r.tiles&&r.tiles.length>0){a.map.bZ.dynamic.set(\\"firstPaint\\",true)}var s=t.map.getMask();this.PB(e,t,i,s)};e.prototype.GG=function(e,r,t,i){var a=e.Wn();var n=r.stencil;if(!n){return}var o=n.Dc;if(!o){return}o.upload(a.context);var f=o.zs;var s=o.Pc;var u=n.Oc;var l=t.viewState.optimalZoom;var v=i.opacity;var c=[r.Sa[0],r.Sa[1]];var h=1;if(t.viewState.viewMode===\\"3D\\"){h=t.map.getView().EF()}if(l<LocalZoom){c=[0,0]}for(var d=0,_=u.jc;d<_.length;d++){var g=_[d];var y={u_matrix:t.viewState.mvpMatrix,u_color:[0,0,0,0],u_offset:[0,0],u_localDeltaCenter:c,u_viewHeight:t.viewState.size[1],u_skyHeight:h};if(y&&o.Qx){a.context.getExtension(\\"OES_element_index_uint\\");a.Ce(y,{a_pos:{type:\\"vec2\\",Re:f.size,offset:0,buffer:f}},g.length,s,\\"TRIANGLES\\",undefined,ColorMode.Si,StencilMode.TE,undefined,g.offset)}}};e.prototype.UG=function(e,r,t,i){var a=e.Wn();var n=r.stencil;if(!n){return}var o=n.Dc;if(!o){return}o.upload(a.context);var f=o.zs;var s=o.Pc;var u=n.Oc;var l=t.viewState.optimalZoom;var v=i.opacity;var c=[r.Sa[0],r.Sa[1]];var h=1;if(t.viewState.viewMode===\\"3D\\"){h=t.map.getView().EF()}if(l<LocalZoom){c=[0,0]}for(var d=0,_=u.jc;d<_.length;d++){var g=_[d];var y={u_matrix:t.viewState.mvpMatrix,u_color:[0,0,0,0],u_offset:[0,0],u_localDeltaCenter:c,u_viewHeight:t.viewState.size[1],u_skyHeight:h};if(y&&o.Qx){a.context.getExtension(\\"OES_element_index_uint\\");a.Ce(y,{a_pos:{type:\\"vec2\\",Re:f.size,offset:0,buffer:f}},g.length,s,\\"TRIANGLES\\",undefined,ColorMode.Si,StencilMode.FE,undefined,g.offset)}}};e.prototype.Lc=function(e,r,t,i){var a=e.Wn();var n=r.data;if(!n){return}var o=n.Dc;if(!o){return}o.upload(a.context);var f=o.zs;var s=o.Pc;var u=n.Oc;var l=t.viewState.optimalZoom;var v=i.opacity;var c=[r.Sa[0],r.Sa[1]];var h=1;if(t.viewState.viewMode===\\"3D\\"){h=t.map.getView().EF()}if(l<LocalZoom){if(r.fY);else{c=[0,0]}}for(var d=0,_=u.jc;d<_.length;d++){var g=_[d];var y={u_matrix:t.viewState.mvpMatrix,u_color:n.bgColor,u_offset:[0,0],u_localDeltaCenter:c,u_viewHeight:t.viewState.size[1],u_skyHeight:h};if(g.style){var m=g.style;if(m.fillColor){var p=m.fillColor;y[\\"u_color\\"]=p}}if(y&&o.Qx){a.context.getExtension(\\"OES_element_index_uint\\");a.Ce(y,{a_pos:{type:\\"vec2\\",Re:f.size,offset:0,buffer:f}},g.length,s,\\"TRIANGLES\\",undefined,ColorMode.Si,this.ZG,undefined,g.offset)}}};e.prototype.Ic=function(e,r,t,i){var a=r.data;if(!a||!a.$c){return}var n=a.Uc;var o=t.viewState.optimalZoom;var f=[r.Sa[0],r.Sa[1]];if(o<LocalZoom){f=[0,0]}var s=a.$c;s.upload(e.context);if(!s.uploaded||!s.zs){return}n.jc.sort(function(e,r){if(e.style&&e.style[0]&&e.style[0].jr&&r.style&&r.style[0]&&r.style[0].jr){if(r.style[0].jr<e.style[0].jr){return 1}else{return-1}}return 0});for(var u=0,l=n.jc;u<l.length;u++){var v=l[u];var c=s.zs.buffer;if(!v.style||v.style.length<1){continue}var h={u_color:[0,0,0,.5],u_matrix:t.viewState.mvpMatrix,u_meter_per_pixel:t.viewState.resolution,u_width:1,u_offset:[0,0],u_localDeltaCenter:f,u_dash:\\"vec3\\",u_dashType:\\"int\\",u_skyHeight:1,u_viewHeight:1};var d=v.style[0];if(d&&d[\\"faceColor\\"]&&d[\\"faceWidth\\"]&&d[\\"type\\"]&&d[\\"type\\"]===\\"line\\"){var _=v.style[0][\\"faceColor\\"];h[\\"u_color\\"]=_;h[\\"u_width\\"]=d[\\"faceWidth\\"]}else{continue}if(!h){return}var g=e.Xn();g.context.getExtension(\\"OES_element_index_uint\\");g.Ce(h,{a_pos:{buffer:c,type:\\"vec2\\",Re:c.size,offset:0},a_normal:{type:\\"vec2\\",buffer:c,Re:c.size,offset:4*2},a_distance:{type:\\"float\\",buffer:c,Re:c.size,offset:4*4},a_dir:{type:\\"vec2\\",buffer:c,Re:c.size,offset:4*5}},v.length,s.Pc.buffer,undefined,undefined,ColorMode.Si,this.ZG,undefined,v.offset)}};e.prototype.sT=function(e,r,t,i){var a=r.data;if(!a||!a.$c){return}var n=a.Uc;var o=t.viewState.optimalZoom;var f=[r.Sa[0],r.Sa[1]];if(o<LocalZoom){f=[0,0]}var s=a.$c;s.upload(e.context);if(!s.uploaded||!s.zs){return}n.jc.sort(function(e,r){if(e.style&&e.style[0]&&e.style[0].Or&&r.style&&r.style[0]&&r.style[0].Or){if(r.style[0].Or<e.style[0].Or){return 1}else{return-1}}return 0});for(var u=0,l=n.jc;u<l.length;u++){var v=l[u];var c=s.zs.buffer;if(!v.style||v.style.length<1){continue}var h={u_color:[0,0,0,.5],u_matrix:t.viewState.mvpMatrix,u_meter_per_pixel:t.viewState.resolution,u_width:1,u_offset:[0,0],u_localDeltaCenter:f,u_dash:\\"vec3\\",u_dashType:\\"int\\",u_skyHeight:1,u_viewHeight:1};var d=v.style[0];if(d&&d[\\"borderColor\\"]&&d[\\"borderWidth\\"]&&d[\\"type\\"]&&d[\\"type\\"]===\\"line\\"){var _=v.style[0][\\"borderColor\\"];h[\\"u_color\\"]=_;h[\\"u_width\\"]=d[\\"borderWidth\\"]}else{continue}if(!h){return}var g=e.Xn();g.context.getExtension(\\"OES_element_index_uint\\");g.Ce(h,{a_pos:{buffer:c,type:\\"vec2\\",Re:c.size,offset:0},a_normal:{type:\\"vec2\\",buffer:c,Re:c.size,offset:4*2},a_distance:{type:\\"float\\",buffer:c,Re:c.size,offset:4*4},a_dir:{type:\\"vec2\\",buffer:c,Re:c.size,offset:4*5}},v.length,s.Pc.buffer,undefined,undefined,ColorMode.Si,this.ZG,undefined,v.offset)}};e.prototype.PB=function(e,r,t,i){e.context.clear({stencil:true});if(i){var a=r.map.getLayerByClass(\\"AMap.MaskLayer\\");if(a){var n=r.uo.getData(a.co(),r.viewState,e.context);var o=a.getRender();if(n&&o){o.renderFrame(e,n,r,t)}}}};e.prototype.fb=function(e,r){var t={strokeWeight:2,strokeOpacity:1,strokeColor:\\"rgb(0,0,0)\\"};var i=t.strokeWeight;var a=Util$7.color2RgbaArray(t.strokeColor);if(!a){return}a=a.slice(0,3);a.push(t.strokeOpacity);return{u_color:a,u_matrix:r.viewState.mvpMatrix,u_meter_per_pixel:r.viewState.resolution,u_width:i,u_offset:e.zx}};return e}(LayerRender);var Attribute=function(){function e(e,r,t,i,a,n){if(a===void 0){a=false}if(n===void 0){n=0}this.context=e;this.type=r;this.Me=t;this.location=i;this.normalize=a;this.Fee=n}e.prototype.set=function(e){var r=this.context.gl;if(!e){this.current=undefined;r.disableVertexAttribArray(this.location);return}if(e.type!==this.type){console.error(\\"error webglBuffer type,need \\"+this.type+\\", receive \\"+e.type+\\" \\");return}if(!this.ke(e)){return}this.current=e;var t;r.enableVertexAttribArray(this.location);this.context.de.set(e.buffer);switch(this.type){case\\"float\\":case\\"int\\":t=1;break;case\\"vec2\\":t=2;break;case\\"vec3\\":t=3;break;case\\"vec4\\":t=4;break;default:t=1}var i;switch(this.Me){case\\"int8\\":i=r.BYTE;break;case\\"uint8\\":i=r.UNSIGNED_BYTE;break;case\\"int16\\":i=r.SHORT;break;case\\"uint16\\":i=r.UNSIGNED_SHORT;break;case\\"float32\\":i=r.FLOAT;break}assert(i,\\"invalid datatype \\"+this.Me);r.vertexAttribPointer(this.location,t,i,this.normalize,e.Re,e.offset);var a=this.context.getExtension(\\"ANGLE_instanced_arrays\\");if(a){a.vertexAttribDivisorANGLE(this.location,0)}if(this.Fee>0){if(a){a.vertexAttribDivisorANGLE(this.location,this.Fee)}}};e.prototype.ke=function(e){return true};return e}();var Uniform=function(){function e(e,r,t){this.context=e;this.type=r;this.location=t;this.Re=0;this.offset=0;this.te=same;this.ze=e.gl}e.prototype.set=function(e){if(this.te(this.current,e)){return}if(e!==undefined){switch(this.type){case\\"bool\\":case\\"int\\":case\\"sampler2D\\":this.ze.uniform1i(this.location,e);break;case\\"sampler2D[]\\":this.ze.uniform1iv(this.location,e);break;case\\"float\\":this.ze.uniform1f(this.location,e);break;case\\"float[]\\":this.ze.uniform1fv(this.location,e);break;case\\"vec2\\":this.ze.uniform2f(this.location,e[0],e[1]);break;case\\"vec3\\":this.ze.uniform3f(this.location,e[0],e[1],e[2]);break;case\\"vec4\\":this.ze.uniform4f(this.location,e[0],e[1],e[2],e[3]);break;case\\"mat2\\":this.ze.uniformMatrix2fv(this.location,false,new Float32Array(e));break;case\\"mat3\\":this.ze.uniformMatrix3fv(this.location,false,new Float32Array(e));break;case\\"mat4\\":this.ze.uniformMatrix4fv(this.location,false,new Float32Array(e));break}this.current=e}};return e}();var Program=function(){function d(e,r,t,i,a,n){this.name=n;this.Ie=[];this.context=e;this.attributes={};this.Te={};var o=e.gl;var f=d.createProgram(o,r,t);this.$i=f;if(!this.$i){console.log(\\"createProgram fail\\",this.name);this.je=false;return this}this.je=true;for(var s in i){if(i.hasOwnProperty(s)){var u=i[s].Oe;var l=i[s].Me;var v=o.getAttribLocation(this.$i,s);var c=i[s].normalize;var h=i[s].Fee;this.attributes[s]=new Attribute(e,u,l,v,c,h)}}for(var s in a){if(a.hasOwnProperty(s)){var u=a[s];var v=o.getUniformLocation(this.$i,s);if(v){this.Te[s]=new Uniform(e,u,v)}if(u===\\"sampler2D\\"){this.Ie.push(s)}}}}d.createProgram=function(e,r,t){var i=d.Se(e,e.VERTEX_SHADER,r);var a=d.Se(e,e.FRAGMENT_SHADER,t);if(!i||!a){return null}var n=e.createProgram();if(!n){return null}e.attachShader(n,i);e.attachShader(n,a);e.bindAttribLocation(n,0,\\"a_Position\\");e.linkProgram(n);var o=e.getProgramParameter(n,e.LINK_STATUS);e.deleteShader(a);e.deleteShader(i);if(!o){var f=e.getProgramInfoLog(n);console.log(\\"Failed to link program: \\"+f);e.deleteProgram(n);return null}return n};d.Se=function(e,r,t){var i=e.createShader(r);if(i===null){return null}e.shaderSource(i,t);e.compileShader(i);var a=e.getShaderParameter(i,e.COMPILE_STATUS);if(!a){var n=e.getShaderInfoLog(i);console.log(\\"Failed to compile shader: \\"+n);e.deleteShader(i);return null}return i};d.prototype.Ce=function(e,r,t,i,a,n,o,f,s,u,l){if(a===void 0){a=\\"TRIANGLES\\"}if(n===void 0){n=false}if(o===void 0){o=ColorMode.Mi}if(f===void 0){f=StencilMode.disable}if(s===void 0){s=CullFaceMode.we}if(u===void 0){u=0}if(!this.je){return}var v=this.context;var c=v.gl;v.ge.set(this);v.ne(n);v.ae(f);v.Qi(o);v.re(s);v.hB.set(false);this.Le(e);this.Ae(r);if(i){v.me.set(i);if(l){var h=v.getExtension(\\"ANGLE_instanced_arrays\\");if(h){if(i.size===32){h.drawElementsInstancedANGLE(c[a],t,c.UNSIGNED_INT,i.size/8*u,l.divisor)}else{h.drawElementsInstancedANGLE(c[a],t,c.UNSIGNED_SHORT,i.size/8*u,l.divisor)}}}else{if(i.size===32){c.drawElements(c[a],t,c.UNSIGNED_INT,i.size/8*u)}else{c.drawElements(c[a],t,c.UNSIGNED_SHORT,i.size/8*u)}}}else{if(l){var h=v.getExtension(\\"ANGLE_instanced_arrays\\");if(h){h.drawArraysInstancedANGLE(c[a],u,t,l.divisor)}}else{c.drawArrays(c[a],u,t)}}};d.prototype.Le=function(e){if(!this.je){return}for(var r in this.Te){var t=this.Te[r];if(t.type===\\"sampler2D\\"){var i=this.Ie.indexOf(r);if(i>=0){var a=e[r];if(a){this.context.bindTexture.setDirty();this.context.activeTexture.set(i);this.context.bindTexture.set(a.texture)}else{this.context.activeTexture.set(i);this.context.bindTexture.setDirty();this.context.bindTexture.set(null)}t.set(i)}}else if(t.type===\\"sampler2D[]\\"){var n=e[r];var o=n.De;var f=n.offset||0;var s=n.count||o.length;var u=[];for(var l=0;l<s;l++){var a=o[l];var i=f+l;if(a){this.context.activeTexture.set(i);this.context.bindTexture.set(a.texture);u.push(i)}else{this.context.activeTexture.set(f);var v=o[0];this.context.bindTexture.set(v.texture);u.push(f)}}t.set(u)}else{t.set(e[r])}}};d.prototype.Ae=function(e){if(!this.je){return}for(var r in this.attributes){if(this.attributes.hasOwnProperty(r)){this.attributes[r].set(e[r])}}};d.prototype.Pe=function(e,r,t,i,a,n,o,f){if(r===void 0){r=0}if(i===void 0){i=\\"TRIANGLES\\"}if(a===void 0){a=false}if(n===void 0){n=ColorMode.Mi}if(o===void 0){o=StencilMode.disable}if(f===void 0){f=CullFaceMode.we}if(!this.je){return}var s=this.context;var u=s.gl;s.ge.set(this);s.ne(a);s.ae(o);s.Qi(n);s.re(f);if(t){s.me.set(t);u.drawElements(u[i],e,u.UNSIGNED_SHORT,t.size/8*r)}else{u.drawArrays(u[i],r,e)}};d.prototype.Ni=function(){if(!this.je){return}for(var e in this.attributes){if(this.attributes.hasOwnProperty(e)){this.attributes[e].set(null)}}};d.prototype.destroy=function(){if(!this.je){return}this.context.gl.deleteProgram(this.$i);this.$i=null};return d}();M[\\"Program\\"]=Program;var rasterVertextString=\\"precision highp float;\\\\n\\\\nuniform mat4 u_mvpMatrix;\\\\nuniform vec2 u_localDeltaCenter;\\\\n\\\\nvarying vec2 v_TextureCoord;\\\\nvarying vec4 v_pos;\\\\n\\\\nattribute vec4 a_Position;\\\\n\\\\nvoid main(){\\\\n    v_TextureCoord=a_Position.zw;\\\\n    vec4 pos=vec4(a_Position.x+u_localDeltaCenter.x,a_Position.y+u_localDeltaCenter.y,0.,1.);\\\\n    gl_Position=u_mvpMatrix*pos;\\\\n    v_pos = gl_Position;\\\\n}\\\\n\\";var rasterFragmentString=\\"precision highp float;\\\\n\\\\nuniform sampler2D u_texture;\\\\nuniform float u_opacity;\\\\nuniform float u_skyHeight;\\\\nuniform float u_viewHeight;  // 地图容器高度，单位像素\\\\nuniform vec3 u_skyColor;\\\\nuniform bool u_flterFlag;\\\\nuniform sampler2D u_colorscale; \\\\n\\\\nvarying vec2 v_TextureCoord;\\\\nvarying vec4 v_pos;\\\\n\\\\nvoid main(void) {\\\\n    // gl_FragColor = vec4(1., 0, 0, 1.);\\\\n    // return;\\\\n    vec4 smpColor = texture2D(u_texture, v_TextureCoord);\\\\n    if(smpColor.a < 0.01){\\\\n        discard;\\\\n    }\\\\n    if(u_flterFlag){\\\\n       float grey = (smpColor.r*0.299) + (smpColor.g*0.587) + (smpColor.b*0.114);\\\\n       smpColor = texture2D(u_colorscale,vec2(grey,0.5));\\\\n    }\\\\n    gl_FragColor = smpColor;\\\\n    gl_FragColor.a *= u_opacity;\\\\n\\\\n    float y = v_pos.y / v_pos.w;\\\\n    float fogHeight = 2. / u_viewHeight * 30.;  // 10 像素高度作为模糊处理\\\\n    vec3 fogColor = vec3(0.9, 0.9, 0.9);\\\\n    if(u_skyHeight < 1.0 && y > 0.0) {\\\\n        // 片元颜色 = 物体颜色 * 雾化因子 + 雾的颜色 * （1 - 雾化因子）\\\\n        // float fogFactor = smoothstep(u_skyHeight + fogHeight, u_skyHeight, y);\\\\n        float fogFactor = smoothstep(u_skyHeight + fogHeight/2.0, u_skyHeight - fogHeight/2.0, y);\\\\n        gl_FragColor.rgb = gl_FragColor.rgb * fogFactor + fogColor * (1.0 - fogFactor);\\\\n        gl_FragColor.a *= fogFactor;\\\\n    }\\\\n    // gl_FragColor = vec4(1.0,0,0,1.0);\\\\n}\\\\n\\";var rasterUniforms={u_skyColor:\\"vec3\\",u_viewHeight:\\"float\\",u_skyHeight:\\"float\\",u_texture:\\"sampler2D\\",u_opacity:\\"float\\",u_mvpMatrix:\\"mat4\\",u_localDeltaCenter:\\"vec2\\",u_flterFlag:\\"bool\\",u_colorscale:\\"sampler2D\\"};var rasterAttributes={a_Position:{Oe:\\"vec4\\",Me:\\"float32\\"}};var raster={uniforms:rasterUniforms,attributes:rasterAttributes,vertexSource:rasterVertextString,fragmentSource:rasterFragmentString};var labelsLayerVertexString=\\"// precision mediump float;\\\\nprecision highp float;\\\\nattribute highp vec2 a_vertex;\\\\nattribute vec2 a_texcoord;\\\\nattribute highp vec2 a_origin;\\\\nattribute lowp float a_type;\\\\nattribute lowp float a_texIndex;\\\\nattribute vec4 a_color;\\\\nattribute lowp vec2 a_zooms;\\\\nattribute lowp float a_visible;\\\\nattribute highp float a_height;\\\\nattribute lowp float a_angle;\\\\nattribute lowp float a_highflag;\\\\n\\\\nuniform lowp vec2 u_gl_size;\\\\nuniform highp mat4 u_matrix;\\\\nuniform float u_texsize[_TotalTextureLenTwice];\\\\nuniform lowp int u_event;\\\\nuniform float u_zoom;\\\\nuniform highp vec2 u_delta_center;\\\\nuniform highp vec2 u_offset;\\\\n// u_transform.x => rotate; u_transform.y => pinch; u_transform.z => scale\\\\nuniform lowp vec4 u_transform;\\\\nuniform lowp float u_skyHeight;\\\\nuniform lowp float u_fontSizeFactor;\\\\n\\\\nvarying vec2 v_texcoord;\\\\nvarying float v_texIndex;\\\\nvarying float v_type;\\\\nvarying vec4 v_color;\\\\nvarying vec2 v_pos;\\\\nvarying float v_highflag;\\\\n\\\\nmat4 rotateMat4(mat4 a, float rad, vec3 axis) {\\\\n    float x = axis[0], y = axis[1], z = axis[2];\\\\n    float len = length(axis);\\\\n    float s, c, t;\\\\n    float a00, a01, a02, a03;\\\\n    float a10, a11, a12, a13;\\\\n    float a20, a21, a22, a23;\\\\n    float b00, b01, b02;\\\\n    float b10, b11, b12;\\\\n    float b20, b21, b22;\\\\n\\\\n    len = 1.0 / len;\\\\n    x *= len;\\\\n    y *= len;\\\\n    z *= len;\\\\n\\\\n    s = sin(rad);\\\\n    c = cos(rad);\\\\n    t = 1.0 - c;\\\\n\\\\n    a00 = a[0][0];\\\\n    a01 = a[0][1];\\\\n    a02 = a[0][2];\\\\n    a03 = a[0][3];\\\\n    a10 = a[1][0];\\\\n    a11 = a[1][1];\\\\n    a12 = a[1][2];\\\\n    a13 = a[1][3];\\\\n    a20 = a[2][0];\\\\n    a21 = a[2][1];\\\\n    a22 = a[2][2];\\\\n    a23 = a[2][3];\\\\n\\\\n    // Construct the elements of the rotation matrix\\\\n    b00 = x * x * t + c;\\\\n    b01 = y * x * t + z * s;\\\\n    b02 = z * x * t - y * s;\\\\n    b10 = x * y * t - z * s;\\\\n    b11 = y * y * t + c;\\\\n    b12 = z * y * t + x * s;\\\\n    b20 = x * z * t + y * s;\\\\n    b21 = y * z * t - x * s;\\\\n    b22 = z * z * t + c;\\\\n\\\\n    // Perform rotation-specific matrix multiplication\\\\n    mat4 outMatrix = mat4(a00 * b00 + a10 * b01 + a20 * b02, a00 * b10 + a10 * b11 + a20 * b12, a00 * b20 + a10 * b21 + a20 * b22, a[3][0], a01 * b00 + a11 * b01 + a21 * b02, a01 * b10 + a11 * b11 + a21 * b12, a01 * b20 + a11 * b21 + a21 * b22, a[3][1], a02 * b00 + a12 * b01 + a22 * b02, a02 * b10 + a12 * b11 + a22 * b12, a02 * b20 + a12 * b21 + a22 * b22, a[3][2], a03 * b00 + a13 * b01 + a23 * b02, a03 * b10 + a13 * b11 + a23 * b12, a03 * b20 + a13 * b21 + a23 * b22, a[3][3]);\\\\n\\\\n    //    outMatrix = mat4(1.0);\\\\n    return outMatrix;\\\\n}\\\\n\\\\nmat4 scaleMat4(mat4 a, vec3 v) {\\\\n    float x = v.x, y = v.y, z = v.z;\\\\n\\\\n    mat4 outMatrix = mat4(a[0][0] * x, a[1][0] * y, a[2][0] * z, a[3][0], a[0][1] * x, a[1][1] * y, a[2][1] * z, a[3][1], a[0][2] * x, a[1][2] * y, a[2][2] * z, a[3][2], a[0][3] * x, a[1][3] * y, a[2][3] * z, a[3][3]);\\\\n\\\\n    return outMatrix;\\\\n}\\\\n\\\\nvec2 getSizeFromArray(float u_texsize[_TotalTextureLenTwice], int ndx) {\\\\n    vec2 texsize;\\\\n\\\\n    if(ndx == 0) {\\\\n        texsize = vec2(u_texsize[0], u_texsize[1]);\\\\n    } else if(ndx == 1) {\\\\n        texsize = vec2(u_texsize[2], u_texsize[3]);\\\\n    } \\\\n    // else if (ndx==2){\\\\n    //     texsize=vec2(u_texsize[4], u_texsize[5]);\\\\n    // } else if (ndx==3){\\\\n    //     texsize=vec2(u_texsize[6], u_texsize[7]);\\\\n    // } else if (ndx==4){\\\\n    //     texsize=vec2(u_texsize[8], u_texsize[9]);\\\\n    // } else if (ndx==5){\\\\n    //     texsize=vec2(u_texsize[10], u_texsize[11]);\\\\n    // }else if (ndx==6){\\\\n    //     texsize=vec2(u_texsize[12], u_texsize[13]);\\\\n    // }\\\\n\\\\n    return texsize;\\\\n}\\\\n\\\\nvoid main() {\\\\n    float pi = 3.141592653589793238462;\\\\n    v_highflag = a_highflag;\\\\n\\\\n    if(a_visible != 0. && u_zoom >= a_zooms.x && u_zoom <= a_zooms.y) {\\\\n        // 绘制背景 || border\\\\n        if(a_type == 6. || a_type == 8.) {\\\\n            mat4 originMatirx = mat4(1.0);\\\\n            mat4 scaleMatrix = scaleMat4(originMatirx, vec3(u_transform.z));\\\\n            mat4 rotateMatrix = rotateMat4(originMatirx, a_angle + u_transform.x, vec3(0, 0, 1));\\\\n            vec4 trans_position = rotateMatrix * scaleMatrix * vec4(a_vertex.x * u_fontSizeFactor, -a_vertex.y * u_fontSizeFactor, 0, 1);\\\\n\\\\n            vec4 trans_normalize_position = vec4(trans_position.xy / u_gl_size.xy * 2., 0, 1);\\\\n\\\\n            vec4 cur_position = u_matrix * vec4(a_origin.xy + u_delta_center + u_offset, a_height, 1);\\\\n\\\\n            //gl_Position=cur_position/cur_position.w+vec4(a_vertex.x/u_gl_size.x*2.*u_fontSizeFactor, -a_vertex.y/u_gl_size.y*2.*u_fontSizeFactor, 0, 0);\\\\n            // 修复文字超出 z 轴范围没有裁剪的问题，现象就是在地图最大级别、pitch 最大的时候出现文字（不应该在地图中的）悬浮在高空中。\\\\n            gl_Position = vec4(cur_position.xy / cur_position.w + trans_normalize_position.xy / trans_normalize_position.w, cur_position.z / cur_position.w, 1);\\\\n\\\\n            v_type = a_type;\\\\n            v_pos = gl_Position.xy;\\\\n        } else if(a_type == 1.) {\\\\n            // 绘制贴地效果文字\\\\n            gl_Position = u_matrix * vec4(a_vertex.xy * u_fontSizeFactor, 0, 1);\\\\n        } else {\\\\n            // 绘制 billborad 效果\\\\n            mat4 originMatirx = mat4(1.0);\\\\n            mat4 scaleMatrix = scaleMat4(originMatirx, vec3(u_transform.z));\\\\n            mat4 rotateMatrix = rotateMat4(originMatirx, a_angle + u_transform.x, vec3(0, 0, 1));\\\\n            vec4 trans_position = rotateMatrix * scaleMatrix * vec4(a_vertex.x * u_fontSizeFactor, -a_vertex.y * u_fontSizeFactor, 0, 1);\\\\n\\\\n            vec4 trans_normalize_position = vec4(trans_position.xy / u_gl_size.xy * 2., 0, 1);\\\\n\\\\n            vec4 cur_position = u_matrix * vec4(a_origin.xy + u_delta_center + u_offset, a_height, 1);\\\\n\\\\n            // 修复文字超出 z 轴范围没有裁剪的问题，现象就是在地图最大级别、pitch 最大的时候出现文字（不应该在地图中的）悬浮在高空中。\\\\n            gl_Position = vec4(cur_position.xy / cur_position.w + trans_normalize_position.xy / trans_normalize_position.w, cur_position.z / cur_position.w, 1);\\\\n        }\\\\n\\\\n        v_texcoord = a_texcoord / getSizeFromArray(u_texsize, int(a_texIndex));\\\\n        v_texIndex = a_texIndex;\\\\n        v_type = floor(a_type + 0.1);\\\\n        v_pos = gl_Position.xy;\\\\n    } else {\\\\n        v_type = -1.0;\\\\n    }\\\\n}\\";var labelsLayerFragmentString=\\"// precision mediump float;\\\\nprecision highp float;\\\\nuniform sampler2D u_texture[_TotalTextureLen];\\\\nuniform vec4 u_color;\\\\nuniform vec4 u_borderColor;\\\\nuniform vec4 u_strokeColor;\\\\nuniform vec4 u_backgroundColor;\\\\nuniform float u_borderBuffer;\\\\nuniform float u_buffer;\\\\nuniform float u_gamma;\\\\nuniform lowp int u_event;\\\\nuniform float u_zoom;\\\\nuniform lowp float u_opacity;\\\\nuniform lowp float u_skyHeight;\\\\nuniform lowp vec3 u_hlColorFactor;\\\\nuniform vec4 u_highlightFillColor;\\\\nuniform vec4 u_highlightStrokeColor;\\\\n\\\\n\\\\nvarying vec2 v_texcoord;\\\\nvarying float v_texIndex;\\\\nvarying float v_type;\\\\nvarying vec4 v_color;\\\\nvarying vec2 v_pos;\\\\nvarying float v_highflag;\\\\n\\\\nfloat skyOpacity() {\\\\n    if (v_pos.y > u_skyHeight){\\\\n        return 1.0 - smoothstep(u_skyHeight, u_skyHeight + (1.0 - u_skyHeight) / 6.0, v_pos.y);\\\\n    }\\\\n    return 1.0;\\\\n}\\\\n\\\\n/*由于片元着色器的数据index必须是常量，只能如此取出相应的值*/\\\\n\\\\nvoid main() {\\\\n    // gl_FragColor = vec4(1.0, 0, 0, 1.);\\\\n    // return;\\\\n    \\\\n    // texture5\\\\n    int texIdx = int(floor(v_texIndex + 0.1));\\\\n\\\\n    vec4 distColor;\\\\n    if (texIdx == 0) { \\\\n        distColor = texture2D(u_texture[0], v_texcoord); \\\\n    } else if(texIdx == 1){ \\\\n        distColor = texture2D(u_texture[1], v_texcoord); \\\\n    }\\\\n\\\\n    if (v_type == 6.0){\\\\n        // bg\\\\n        gl_FragColor = vec4(u_backgroundColor.rgb, u_backgroundColor.a * u_opacity);\\\\n        gl_FragColor.a *= skyOpacity();\\\\n    } else if (v_type == 8.0){\\\\n        // textborder\\\\n        gl_FragColor = vec4(u_borderColor.rgb, u_borderColor.a * u_opacity);\\\\n        // gl_FragColor.r*= mix(1.0,u_hlColorFactor.r,step(v_highflag,0.1));\\\\n        // gl_FragColor.g*= mix(1.0,u_hlColorFactor.g,step(v_highflag,0.1));\\\\n        // gl_FragColor.b*= mix(1.0,u_hlColorFactor.b,step(v_highflag,0.1));\\\\n        gl_FragColor.a *= skyOpacity();\\\\n    } else if(v_type == 0.0){\\\\n        // icon\\\\n        // gl_FragColor = vec4(0,0,1.0,0.2);\\\\n        // return;\\\\n        float opacity = u_opacity * distColor.a;\\\\n        if (opacity < 0.03){\\\\n            discard;\\\\n        }\\\\n        gl_FragColor = vec4(distColor.rgb, opacity);\\\\n        // gl_FragColor.g*= mix(1.0,u_hlColorFactor.r,step(v_highflag,0.1));\\\\n        // gl_FragColor.g*= mix(1.0,u_hlColorFactor.g,step(v_highflag,0.1));\\\\n        // gl_FragColor.b*= mix(1.0,u_hlColorFactor.b,step(v_highflag,0.1));\\\\n        // gl_FragColor = vec4(distColor.rgb, u_opacity * distColor.a);\\\\n        gl_FragColor.a *= skyOpacity();\\\\n    }else if(v_type==2.0){\\\\n        // text\\\\n        float dist;\\\\n        float alpha;\\\\n\\\\n        // 后端加载纹理 rgba => [[0, 255], [0, 255], [0, 255], [0, 1]]\\\\n        // 前端加载纹理 rgba => [[0, 0, 0, [0, 1]]\\\\n        if (distColor.r != 0.){\\\\n            dist = distColor.r;\\\\n        } else if (distColor.a == 1.0){\\\\n            dist = 0.0;\\\\n        } else {\\\\n            dist = distColor.a;\\\\n        }\\\\n\\\\n        //    gl_FragColor = vec4(dist, dist, dist, 1);\\\\n        //    return;\\\\n        //    dist = 255.0;\\\\n       vec4 color = mix(u_color,u_highlightFillColor,step(0.1,v_highflag));\\\\n       vec4 stokeColor =mix(u_strokeColor,u_highlightStrokeColor,step(0.1,v_highflag));\\\\n        if (u_borderBuffer == 0.0){\\\\n            alpha = smoothstep(u_buffer - u_gamma, u_buffer, dist);\\\\n            gl_FragColor = vec4(color.rgb, alpha * color.a * u_opacity);\\\\n        } else {\\\\n            if (dist <= u_buffer - u_gamma){\\\\n                // border 与外界交界\\\\n                alpha = smoothstep(u_borderBuffer - u_gamma, u_borderBuffer, dist);\\\\n                float opacity = alpha * stokeColor.a * u_opacity;\\\\n                if (opacity == 0.0){\\\\n                    // gl_FragColor = vec4(1.0,0,0,0.1);\\\\n                    // return;\\\\n                    discard;\\\\n                }\\\\n                gl_FragColor = vec4(stokeColor.rgb, opacity);\\\\n                // gl_FragColor = vec4(0,0,1.0,0.2);\\\\n            } else if (dist < u_buffer){\\\\n                // 文字与 border 交界\\\\n                alpha = smoothstep(u_buffer - u_gamma, u_buffer, dist);\\\\n                gl_FragColor = vec4(alpha * color.rgb + (1.0 - alpha) * stokeColor.rgb, 1.0 * color.a *\\\\n                alpha * u_opacity + (1.0 - alpha) * stokeColor.a * u_opacity);\\\\n            } else {\\\\n                // 文字\\\\n                alpha = 1.0;\\\\n                gl_FragColor = vec4(color.rgb, alpha * color.a * u_opacity);\\\\n                // gl_FragColor = vec4(1.0, 0, 0, 1.);\\\\n            }\\\\n        }\\\\n        // gl_FragColor.r*= 1.0;\\\\n        // gl_FragColor.g*=1.0;\\\\n        // gl_FragColor.b*= 1.0;\\\\n        // gl_FragColor.r*= mix(1.0,u_hlColorFactor.r,step(0.1,v_highflag));\\\\n        // gl_FragColor.g*= mix(1.0,u_hlColorFactor.g,step(0.1,v_highflag));\\\\n        // gl_FragColor.b*= mix(1.0,u_hlColorFactor.b,step(0.1,v_highflag));\\\\n\\\\n        // if(v_highflag>0.1){\\\\n        //     gl_FragColor.r*= mix(1.0,u_hlColorFactor.r,step(v_highflag,0.1));\\\\n        //     gl_FragColor.g*=u_hlColorFactor.g;\\\\n        //     gl_FragColor.b*=u_hlColorFactor.b;\\\\n        // } \\\\n        gl_FragColor.a *= skyOpacity();\\\\n\\\\n    }else {\\\\n        discard;\\\\n    }\\\\n   \\\\n}\\\\n\\";var labelsLayerUniforms={u_gl_size:\\"vec2\\",u_matrix:\\"mat4\\",u_texsize:\\"float[]\\",u_texture:\\"sampler2D[]\\",u_event:\\"int\\",u_zoom:\\"float\\",u_color:\\"vec4\\",u_borderColor:\\"vec4\\",u_strokeColor:\\"vec4\\",u_backgroundColor:\\"vec4\\",u_borderBuffer:\\"float\\",u_buffer:\\"float\\",u_gamma:\\"float\\",u_opacity:\\"float\\",u_delta_center:\\"vec2\\",u_offset:\\"vec2\\",u_transform:\\"vec4\\",u_skyHeight:\\"float\\",u_fontSizeFactor:\\"float\\",u_hlColorFactor:\\"vec3\\",u_highlightFillColor:\\"vec4\\",u_highlightStrokeColor:\\"vec4\\"};var labelsLayerAttributes={a_vertex:{Oe:\\"vec2\\",Me:\\"float32\\"},a_texcoord:{Oe:\\"vec2\\",Me:\\"float32\\"},a_origin:{Oe:\\"vec2\\",Me:\\"float32\\"},a_zooms:{Oe:\\"vec2\\",Me:\\"float32\\"},a_height:{Oe:\\"float\\",Me:\\"float32\\"},a_angle:{Oe:\\"float\\",Me:\\"float32\\"},a_type:{Oe:\\"float\\",Me:\\"float32\\"},a_texIndex:{Oe:\\"float\\",Me:\\"float32\\"},a_visible:{Oe:\\"float\\",Me:\\"uint8\\"},a_highflag:{Oe:\\"float\\",Me:\\"float32\\"}};var labelsLayer={uniforms:labelsLayerUniforms,attributes:labelsLayerAttributes,vertexSource:labelsLayerVertexString,fragmentSource:labelsLayerFragmentString};var combineTextVertexString=\\"precision highp float;\\\\n\\\\nattribute vec2 a_targetTexturePos;\\\\nattribute vec2 a_sourceTexturePos;\\\\n\\\\nuniform vec2 u_targetTextureSize;\\\\nuniform vec2 u_sourceTextureSize;\\\\n\\\\nvarying vec2 v_textureCoord;\\\\n\\\\n\\\\nvoid main() {\\\\n  v_textureCoord = a_sourceTexturePos / u_sourceTextureSize;\\\\n  // v_textureCoord = vec2(a_sourceTexturePos.x / u_sourceTextureSize.x, a_sourceTexturePos.y / u_sourceTextureSize.y);\\\\n\\\\n  vec2 pos = (a_targetTexturePos / u_targetTextureSize) *2.0 -vec2(1.0,1.0);\\\\n  // vec2 pos = vec2(a_targetTexturePos.x / u_targetTextureSize.x, a_targetTexturePos.y / u_targetTextureSize.y);\\\\n  // pos.x = (pos.x - 0.5)*2.0;\\\\n  // pos.y = (pos.y - 0.5)*2.0;\\\\n\\\\n  gl_Position = vec4(pos, 0, 1.0);\\\\n  // gl_Position = vec4(a_targetTexturePos,0,1.0);\\\\n}\\";var combineTextFragmentString=\\"precision highp float;\\\\n\\\\nuniform sampler2D u_sourceTexture; \\\\n\\\\nvarying vec2 v_textureCoord;\\\\n\\\\n\\\\nvoid main(){\\\\n  gl_FragColor = texture2D(u_sourceTexture, v_textureCoord);\\\\n  // gl_FragColor = vec4(1,0, 0, 0 ,1.0);\\\\n    // gl_FragColor = vec4(0,0,1.0,1.0);\\\\n}\\";var combineTextUniforms={u_sourceTexture:\\"sampler2D\\",u_sourceTextureSize:\\"vec2\\",u_targetTextureSize:\\"vec2\\"};var combineTextAttributes={a_targetTexturePos:{Oe:\\"vec2\\",Me:\\"uint16\\"},a_sourceTexturePos:{Oe:\\"vec2\\",Me:\\"uint16\\"}};var combineText={uniforms:combineTextUniforms,attributes:combineTextAttributes,vertexSource:combineTextVertexString,fragmentSource:combineTextFragmentString};var debugImageVertexString=\\"precision highp float;\\\\n\\\\nattribute vec2 a_pos;\\\\nattribute vec2 a_coord;\\\\n\\\\nvarying vec2 v_coord;\\\\n\\\\nvoid main() {\\\\n  v_coord = vec2(a_coord.x,1.0 - a_coord.y) ;\\\\n  vec2 pos = a_pos *2.0 -vec2(1.0,1.0);\\\\n  // vec2 pos = a_pos -vec2(,1.0);\\\\n  gl_Position = vec4(pos,0,1.0);\\\\n}\\";var debugImageFragmentString=\\"precision highp float;\\\\n\\\\nvarying vec2 v_coord;\\\\n\\\\nuniform sampler2D u_texture;\\\\n\\\\nvoid main(){\\\\n  gl_FragColor = texture2D(u_texture, v_coord);\\\\n  // gl_FragColor = vec4(1.0,0,0,1.0);\\\\n}\\\\n\\";var debugImageUniforms={u_texture:\\"sampler2D\\"};var debugImageAttributes={a_pos:{Oe:\\"vec2\\",Me:\\"uint16\\"},a_coord:{Oe:\\"vec2\\",Me:\\"uint16\\"}};var debugImage={uniforms:debugImageUniforms,attributes:debugImageAttributes,vertexSource:debugImageVertexString,fragmentSource:debugImageFragmentString};var circleFragmentString=\\"\\\\n\\\\nprecision highp float;\\\\n#define GLSLIFY 1\\\\nuniform  float u_radius;\\\\nuniform  vec2 u_range;\\\\nuniform highp vec4 u_color;\\\\nuniform highp vec4 u_borderColor;\\\\nuniform float u_skyHeight;\\\\nuniform float u_viewHeight;  // 地图容器高度，单位像素\\\\n\\\\nvarying vec4 v_pos;\\\\n\\\\nfloat fogcalc(vec4 pos, float skyHeight, float viewHeight) {\\\\n    float y = pos.y / pos.w;\\\\n    float fogHeight = 2. / viewHeight * 30.;\\\\n    float fogFactor = 1.0;\\\\n    if(skyHeight < 1.0 && y > 0.0) {\\\\n        fogFactor = smoothstep(skyHeight + fogHeight/2.0, skyHeight - fogHeight/2.0, y);\\\\n    }\\\\n    return fogFactor;\\\\n}\\\\n\\\\nvoid main() {\\\\n  float offset = distance(gl_PointCoord, vec2(0.5,0.5))*2.0;\\\\n  float flag = step(1.0,offset);\\\\n  float borderFlag = 1.- smoothstep(1.0 -1./u_radius, 1.0, offset);\\\\n  if(flag > 0.0){\\\\n    discard;\\\\n  }\\\\n  float opacity_t = 1.-smoothstep(u_range[1] -1./u_radius, u_range[1], offset);\\\\n  gl_FragColor = mix(u_borderColor, u_color, opacity_t);\\\\n  gl_FragColor.a *= fogcalc(v_pos, u_skyHeight, u_viewHeight)*borderFlag;\\\\n}\\";var circleVertextString=\\"precision highp float;\\\\n#define GLSLIFY 1\\\\nuniform vec2 u_pos;\\\\nuniform mat4 u_matrix;\\\\nuniform float u_radius;\\\\nuniform vec2 u_localDeltaCenter;\\\\nuniform vec2 u_offset;\\\\nuniform float u_retinaRatio;\\\\nvarying vec4 v_pos;\\\\n\\\\nvoid main(){\\\\n    vec2 pos=vec2(u_pos.x+u_localDeltaCenter.x+u_offset.x,u_pos.y+u_localDeltaCenter.y+u_offset.y);\\\\n    gl_Position=u_matrix * vec4(pos,0,1);\\\\n    gl_PointSize = u_radius * u_retinaRatio * 2.0;\\\\n    v_pos = gl_Position;\\\\n}\\\\n\\";var circleAttrVertextString=\\"precision highp float;\\\\n#define GLSLIFY 1\\\\nattribute vec2 a_pos;\\\\nuniform mat4 u_matrix;\\\\nuniform float u_radius;\\\\nuniform vec2 u_localDeltaCenter;\\\\nuniform vec2 u_offset;\\\\nuniform float u_retinaRatio;\\\\nvarying vec4 v_pos;\\\\n\\\\nvoid main(){\\\\n    vec2 pos=vec2(a_pos.x+u_localDeltaCenter.x+u_offset.x,a_pos.y+u_localDeltaCenter.y+u_offset.y);\\\\n    gl_Position=u_matrix * vec4(pos,0,1);\\\\n    gl_PointSize = u_radius * u_retinaRatio * 2.0;\\\\n    v_pos = gl_Position;\\\\n}\\\\n\\";var circleUniforms={u_pos:\\"vec2\\",u_color:\\"vec4\\",u_borderColor:\\"vec4\\",u_matrix:\\"mat4\\",u_localDeltaCenter:\\"vec2\\",u_offset:\\"vec2\\",u_radius:\\"float\\",u_range:\\"vec2\\",u_retinaRatio:\\"float\\",u_skyHeight:\\"float\\",u_viewHeight:\\"float\\"};var circleAttributes={};var circle={uniforms:circleUniforms,attributes:circleAttributes,vertexSource:circleVertextString,fragmentSource:circleFragmentString};var circleAttrUniforms={u_color:\\"vec4\\",u_borderColor:\\"vec4\\",u_matrix:\\"mat4\\",u_localDeltaCenter:\\"vec2\\",u_offset:\\"vec2\\",u_radius:\\"float\\",u_range:\\"vec2\\",u_retinaRatio:\\"float\\",u_skyHeight:\\"float\\",u_viewHeight:\\"float\\"};var circleAttrAttributes={a_pos:{Oe:\\"vec2\\",Me:\\"float32\\"}};var circleAttr={uniforms:circleAttrUniforms,attributes:circleAttrAttributes,vertexSource:circleAttrVertextString,fragmentSource:circleFragmentString};var pointFragmentString=\\"\\\\n\\\\nprecision highp float;\\\\n#define GLSLIFY 1\\\\nuniform float u_skyHeight;\\\\nuniform float u_viewHeight; // 地图容器高度，单位像素\\\\nuniform bool u_pick;\\\\n\\\\nvarying vec4 v_pos;\\\\nvarying float v_radius;\\\\nvarying float v_visible;\\\\nvarying float v_borderWidth;\\\\nvarying vec4 v_color;\\\\nvarying vec4 v_borderColor;\\\\n// varying vec4 v_pickColor;\\\\n\\\\nfloat fogcalc(vec4 pos, float skyHeight, float viewHeight) {\\\\n    float y = pos.y / pos.w;\\\\n    float fogHeight = 2. / viewHeight * 30.;\\\\n    float fogFactor = 1.0;\\\\n    if(skyHeight < 1.0 && y > 0.0) {\\\\n        fogFactor = smoothstep(skyHeight + fogHeight/2.0, skyHeight - fogHeight/2.0, y);\\\\n    }\\\\n    return fogFactor;\\\\n}\\\\n\\\\nvoid main() {\\\\n  float offset = distance(gl_PointCoord, vec2(0.5,0.5))*2.0;\\\\n  float flag = step(1.0,offset);\\\\n  float borderFlag = 1.- smoothstep(1.0 - 1. / v_radius, 1.0, offset);\\\\n  if(flag > 0.0){\\\\n    discard;\\\\n  }\\\\n  float range = v_radius / (v_radius + v_borderWidth);\\\\n  float opacity_t = 1. - smoothstep(range - 1. / v_radius, range, offset);\\\\n  gl_FragColor = mix(v_borderColor, v_color, opacity_t);\\\\n  gl_FragColor.a *= fogcalc(v_pos, u_skyHeight, u_viewHeight) * borderFlag * v_visible;\\\\n\\\\n  // if(u_pick) {\\\\n  //   gl_FragColor = vec4(v_pickColor.xyz / 256.0, 1);\\\\n  // }\\\\n}\\";var pointVertextString=\\"precision highp float;\\\\n#define GLSLIFY 1\\\\nattribute vec2 a_pos;\\\\nattribute float a_radius;\\\\nattribute float a_borderWidth;\\\\nattribute float a_visible;\\\\nattribute vec4 a_color;\\\\nattribute vec4 a_borderColor;\\\\nattribute vec4 a_pickColor;\\\\n\\\\nuniform mat4 u_matrix;\\\\nuniform vec2 u_localDeltaCenter;\\\\nuniform vec2 u_offset;\\\\nuniform float u_retinaRatio;\\\\n\\\\nvarying vec4 v_pos;\\\\nvarying float v_radius;\\\\nvarying float v_visible;\\\\nvarying float v_borderWidth;\\\\nvarying vec4 v_color;\\\\nvarying vec4 v_borderColor;\\\\nvarying vec4 v_pickColor;\\\\n\\\\nvoid main() {\\\\n    vec2 pos = vec2(a_pos.x + u_localDeltaCenter.x + u_offset.x,a_pos.y+u_localDeltaCenter.y+u_offset.y);\\\\n    gl_Position = u_matrix * vec4(pos,0,1);\\\\n    gl_PointSize = (a_radius + a_borderWidth) * u_retinaRatio * 2.0;\\\\n    v_pos = gl_Position;\\\\n    v_radius = a_radius;\\\\n    v_borderWidth = a_borderWidth;\\\\n    v_color = a_color;\\\\n    v_borderColor = a_borderColor;\\\\n    v_visible = a_visible;\\\\n    v_pickColor = a_pickColor;\\\\n}\\\\n\\";var pointUniforms={u_matrix:\\"mat4\\",u_localDeltaCenter:\\"vec2\\",u_offset:\\"vec2\\",u_retinaRatio:\\"float\\",u_skyHeight:\\"float\\",u_viewHeight:\\"float\\"};var pointAttributes={a_pos:{Oe:\\"vec2\\",Me:\\"float32\\"},a_radius:{Oe:\\"float\\",Me:\\"float32\\"},a_borderWidth:{Oe:\\"float\\",Me:\\"float32\\"},a_color:{Oe:\\"vec4\\",Me:\\"float32\\"},a_borderColor:{Oe:\\"vec4\\",Me:\\"float32\\"},a_visible:{Oe:\\"float\\",Me:\\"float32\\"}};var point={uniforms:pointUniforms,attributes:pointAttributes,vertexSource:pointVertextString,fragmentSource:pointFragmentString};var lineFragmentString$2=\\"precision mediump float;\\\\n#define GLSLIFY 1\\\\n\\\\nuniform vec4 u_color;\\\\nuniform vec4 u_outLinecolor;\\\\n// uniform float u_opacity;\\\\nuniform vec3 u_dash;\\\\nuniform int u_dashType;\\\\nuniform sampler2D u_texture;\\\\nuniform  mediump float u_width;\\\\n\\\\nvarying highp float v_distance;\\\\nvarying float v_width;\\\\nvarying vec2 v_normal;\\\\nvarying float v_flag;\\\\nvarying vec4 v_pos;\\\\n\\\\nuniform float u_skyHeight;\\\\nuniform float u_viewHeight;  // 地图容器高度，单位像素\\\\nfloat fogcalc(vec4 pos, float skyHeight, float viewHeight) {\\\\n    float y = pos.y / pos.w;\\\\n    float fogHeight = 2. / viewHeight * 30.;\\\\n    float fogFactor = 1.0;\\\\n    if(skyHeight < 1.0 && y > 0.0) {\\\\n        fogFactor = smoothstep(skyHeight + fogHeight/2.0, skyHeight - fogHeight/2.0, y);\\\\n    }\\\\n    return fogFactor;\\\\n}\\\\n\\\\nvoid main() {\\\\n    // vec2 icon_offset = vec2(80.0, 0.0);\\\\n    // vec2 icon_size = vec2(40.0, 40.0);\\\\n    // vec2 icon_offset = vec2(0.0, 0.0);\\\\n    // vec2 icon_size = vec2(44.0, 32.0);\\\\n    // vec2 texture_size = vec2(512.0, 2048.0);\\\\n    float offset = 0.0;\\\\n    if( u_dashType == 2 ){\\\\n        float offset = mod(v_distance, u_dash.r + u_dash.g);\\\\n        if(offset>u_dash.r && offset < u_dash.r + u_dash.g){\\\\n            discard;\\\\n        }\\\\n    }else if(u_dashType == 3) {\\\\n        float all = u_dash[0] * 2.0 + u_dash[1] * 2.0 + u_dash[2] * 2.0;\\\\n        offset = mod(v_distance, all);\\\\n        vec3 solidBound = vec3(u_dash[0], u_dash[0] + u_dash[1] + u_dash[2], u_dash[0] * 2.0 + u_dash[1] * 2.0 + u_dash[2]);\\\\n        vec3 dashBound = vec3(solidBound.x + u_dash[1], solidBound.y + u_dash[0], solidBound.z + u_dash[2]);\\\\n\\\\n        if (offset > solidBound.x && offset <= dashBound.x\\\\n            || offset > solidBound.y && offset <= dashBound.y\\\\n            || offset > solidBound.z && offset <= dashBound.z) {\\\\n            discard;\\\\n        }\\\\n    }\\\\n\\\\n    float startBlur = 0.0;\\\\n    float endBlur = 1.0;\\\\n    // float dist = length(v_normal) * 0.8;\\\\n\\\\n    // if(v_width < 4.0 && u_border == 1.0) {\\\\n    //     startBlur = 0.0;\\\\n    // } else {\\\\n    //     // 线主体\\\\n    //     if(v_width < 4.0 && u_border == 0.0) {\\\\n    //         startBlur = 0.0;\\\\n    //     } else {\\\\n    //         startBlur = 0.4;\\\\n    //     }\\\\n    // }\\\\n    // startBlur = clamp(0.0, 0.4, smoothstep(0.0, 4.0, v_width) - 0.6);\\\\n\\\\n    // startBlur = 0.0;\\\\n    // float opacity = 1.0 - smoothstep(startBlur, endBlur, dist);\\\\n\\\\n    gl_FragColor = u_color;\\\\n    gl_FragColor.a *= fogcalc(v_pos, u_skyHeight, u_viewHeight);\\\\n    #ifdef OVERDRAW_INSPECTOR\\\\n        gl_FragColor = vec4(1.0);\\\\n    #endif\\\\n}\\\\n\\";var lineVertextString$2=\\"precision highp float;\\\\n#define GLSLIFY 1\\\\nattribute vec2 a_pos;\\\\nattribute vec2 a_normal;\\\\nattribute float a_distance;\\\\nattribute vec2 a_dir;\\\\n\\\\n// attribute vec4 a_color;\\\\n// attribute float a_width;\\\\n// attribute vec4 a_dash;\\\\n\\\\nuniform float u_meter_per_pixel;\\\\nuniform mat4 u_matrix;\\\\nuniform vec2 u_localDeltaCenter;\\\\n\\\\nuniform  mediump float u_width;\\\\nuniform vec2 u_offset;  // polygin 拖动平移的时候使用\\\\nvarying float v_distance;\\\\nvarying float v_width;\\\\nvarying vec2 v_normal;\\\\nvarying float v_flag;\\\\nvarying vec4 v_pos;\\\\n\\\\n#define WORLD_SIZE 20037508.342789244\\\\n\\\\nvoid main(){\\\\n\\\\n    float width = u_width;\\\\n    float cosValue = dot(a_normal , a_dir);\\\\n    float sinValue = cross(vec3(normalize(a_normal),0.0), vec3(a_dir,0.0))[2];\\\\n    sinValue = step(0.0, sinValue);\\\\n    sinValue = (sinValue - 0.5)* 2.0;\\\\n    v_distance = a_distance/u_meter_per_pixel + (cosValue * width *0.5);\\\\n\\\\n    vec2 pos = a_pos;\\\\n    pos.x+=u_localDeltaCenter.x + u_offset.x;\\\\n    pos.y+=u_localDeltaCenter.y + u_offset.y;\\\\n//    gl_PointSize = 3.0;\\\\n//    gl_Position = u_matrix * vec4(pos, 0, 1);\\\\n    gl_Position = u_matrix * vec4(pos + a_normal * width * u_meter_per_pixel * 0.5, 0, 1);\\\\n    v_width = width;\\\\n    v_normal = normalize(a_normal * sqrt(1.0 - pow(cosValue, 2.0)));\\\\n    v_flag = sinValue;\\\\n    v_pos = gl_Position;\\\\n\\\\n}\\";var linePatternFragmentString=\\"precision mediump float;\\\\n#define GLSLIFY 1\\\\n\\\\nuniform sampler2D u_texture;\\\\nuniform  highp vec2 u_iconsize;\\\\nuniform  mediump vec3 u_dir_color;\\\\nuniform  bool u_custom_img_flag;\\\\nuniform  highp float u_width;\\\\nuniform highp float u_meter_per_pixel;\\\\nuniform highp float u_meter_per_pixel_optimal;\\\\n\\\\nvarying highp float v_distance;\\\\n// varying float v_width;\\\\n// varying vec2 v_normal;\\\\nvarying highp float v_flag;\\\\nvarying vec4 v_pos;\\\\n\\\\nuniform float u_skyHeight;\\\\nuniform float u_viewHeight;  // 地图容器高度，单位像素\\\\n\\\\nuniform float u_timer;\\\\nuniform float u_speed;\\\\nuniform float u_size_scale;\\\\nuniform bool u_animate;\\\\nfloat fogcalc(vec4 pos, float skyHeight, float viewHeight) {\\\\n    float y = pos.y / pos.w;\\\\n    float fogHeight = 2. / viewHeight * 30.;\\\\n    float fogFactor = 1.0;\\\\n    if(skyHeight < 1.0 && y > 0.0) {\\\\n        fogFactor = smoothstep(skyHeight + fogHeight/2.0, skyHeight - fogHeight/2.0, y);\\\\n    }\\\\n    return fogFactor;\\\\n}\\\\n\\\\nvoid main() {\\\\n    // if(abs(v_flag)>=1.0){\\\\n    //     discard;\\\\n    // }\\\\n    vec2 icon_size = u_iconsize * vec2(u_width/u_iconsize.y, 1.0 );\\\\n    float offset = 0.0;\\\\n    float ani = u_animate ? u_timer / 1000.0 : 0.0;\\\\n    float text_offset_x = mod(v_distance - ani * u_speed, (icon_size.x*4.0*u_size_scale)*u_meter_per_pixel_optimal/u_meter_per_pixel);\\\\n    // float text_offset_x = mod(v_distance - ani * u_speed, (icon_size.x*4.0)*u_meter_per_pixel_optimal/u_meter_per_pixel);\\\\n\\\\n    // float text_offset_x = mod(v_distance, 120.0);\\\\n\\\\n    if(text_offset_x<=0.0){\\\\n        discard;\\\\n    }\\\\n    if(text_offset_x>=icon_size.x){\\\\n        discard;\\\\n    }\\\\n\\\\n    text_offset_x = 1.0 - clamp(0.0,1.0,text_offset_x/icon_size.x);\\\\n\\\\n    // float  text_offset_y  = (v_flag+1.0)/2.0  ;\\\\n    float  text_offset_y  = v_flag  ;\\\\n\\\\n    if(u_custom_img_flag){\\\\n        gl_FragColor = texture2D(u_texture, vec2(text_offset_y, text_offset_x));\\\\n    }else{\\\\n        vec4 color = texture2D(u_texture, vec2(text_offset_y,text_offset_x));\\\\n        if(color.a>0.0){\\\\n            gl_FragColor = vec4(u_dir_color,1.0);\\\\n        }\\\\n    }\\\\n   gl_FragColor.a *= fogcalc(v_pos, u_skyHeight, u_viewHeight);\\\\n    #ifdef OVERDRAW_INSPECTOR\\\\n        gl_FragColor = vec4(1.0);\\\\n    #endif\\\\n}\\\\n\\";var linePatternVertextString=\\"precision highp float;\\\\n#define GLSLIFY 1\\\\nattribute vec2 a_pos;\\\\nattribute vec2 a_normal;\\\\nattribute float a_distance;\\\\nattribute vec2 a_dir;\\\\n\\\\n// attribute vec4 a_color;\\\\n// attribute float a_width;\\\\n// attribute vec4 a_dash;\\\\n\\\\nuniform highp float u_meter_per_pixel;\\\\nuniform highp float u_meter_per_pixel_optimal;\\\\nuniform mat4 u_matrix;\\\\nuniform vec2 u_localDeltaCenter;\\\\n\\\\nuniform  highp float u_width;\\\\nuniform vec2 u_offset;  // polygin 拖动平移的时候使用\\\\nvarying highp float v_distance;\\\\n// varying mediump float v_width;\\\\n// varying vec2 v_normal;\\\\nvarying highp float v_flag;\\\\nvarying vec4 v_pos;\\\\n\\\\n#define WORLD_SIZE 20037508.342789244\\\\n\\\\nvoid main(){\\\\n\\\\n    float width = u_width + 0.0;\\\\n    float cosValue = dot(a_normal , a_dir);\\\\n    float sinValue = cross(vec3(normalize(a_normal),0.0), vec3(a_dir,0.0))[2];\\\\n    sinValue = step(0.0, sinValue);\\\\n    // sinValue = (sinValue - 0.5)* 2.0;\\\\n    v_distance = a_distance/u_meter_per_pixel + (cosValue * width *0.5);\\\\n\\\\n    vec2 pos = a_pos;\\\\n    pos.x+=u_localDeltaCenter.x + u_offset.x;\\\\n    pos.y+=u_localDeltaCenter.y + u_offset.y;\\\\n//    gl_PointSize = 3.0;\\\\n//    gl_Position = u_matrix * vec4(pos, 0, 1);\\\\n    gl_Position = u_matrix * vec4(pos + a_normal * width * u_meter_per_pixel * 0.5, 0, 1);\\\\n    // v_width = width;\\\\n    // v_normal = normalize(a_normal * sqrt(1.0 - pow(cosValue, 2.0)));\\\\n    v_flag = sinValue;\\\\n    v_pos = gl_Position;\\\\n\\\\n}\\";var lineGradinetFragmentString=\\"precision mediump float;\\\\n#define GLSLIFY 1\\\\n\\\\nuniform vec4 u_outLinecolor;\\\\n// uniform float u_opacity;\\\\nuniform vec3 u_dash;\\\\nuniform int u_dashType;\\\\nuniform sampler2D u_texture;\\\\nuniform  mediump float u_width;\\\\nuniform  highp float u_total_distance;\\\\n\\\\nvarying highp float v_distance;\\\\nvarying vec4 v_pos;\\\\n\\\\nuniform float u_skyHeight;\\\\nuniform float u_viewHeight;  // 地图容器高度，单位像素\\\\nfloat fogcalc(vec4 pos, float skyHeight, float viewHeight) {\\\\n    float y = pos.y / pos.w;\\\\n    float fogHeight = 2. / viewHeight * 30.;\\\\n    float fogFactor = 1.0;\\\\n    if(skyHeight < 1.0 && y > 0.0) {\\\\n        fogFactor = smoothstep(skyHeight + fogHeight/2.0, skyHeight - fogHeight/2.0, y);\\\\n    }\\\\n    return fogFactor;\\\\n}\\\\n\\\\nvoid main() {\\\\n\\\\n    float offset = 0.0;\\\\n    if( u_dashType == 2 ){\\\\n        float offset = mod(v_distance, u_dash.r + u_dash.g);\\\\n        if(offset>u_dash.r && offset < u_dash.r + u_dash.g){\\\\n            discard;\\\\n        }\\\\n    }else if(u_dashType == 3) {\\\\n        float all = u_dash[0] * 2.0 + u_dash[1] * 2.0 + u_dash[2] * 2.0;\\\\n        offset = mod(v_distance, all);\\\\n        vec3 solidBound = vec3(u_dash[0], u_dash[0] + u_dash[1] + u_dash[2], u_dash[0] * 2.0 + u_dash[1] * 2.0 + u_dash[2]);\\\\n        vec3 dashBound = vec3(solidBound.x + u_dash[1], solidBound.y + u_dash[0], solidBound.z + u_dash[2]);\\\\n\\\\n        if (offset > solidBound.x && offset <= dashBound.x\\\\n            || offset > solidBound.y && offset <= dashBound.y\\\\n            || offset > solidBound.z && offset <= dashBound.z) {\\\\n            discard;\\\\n        }\\\\n    }\\\\n    float texture_x = v_distance/u_total_distance;\\\\n    gl_FragColor = texture2D(u_texture, vec2(texture_x,0.5));\\\\n    gl_FragColor.a *= fogcalc(v_pos, u_skyHeight, u_viewHeight);\\\\n    #ifdef OVERDRAW_INSPECTOR\\\\n        gl_FragColor = vec4(1.0);\\\\n    #endif\\\\n}\\\\n\\";var lineGradientVertextString=\\"precision highp float;\\\\n#define GLSLIFY 1\\\\nattribute vec2 a_pos;\\\\nattribute vec2 a_normal;\\\\nattribute float a_distance;\\\\nattribute vec2 a_dir;\\\\n\\\\n// attribute vec4 a_color;\\\\n// attribute float a_width;\\\\n// attribute vec4 a_dash;\\\\n\\\\nuniform float u_meter_per_pixel;\\\\nuniform mat4 u_matrix;\\\\nuniform vec2 u_localDeltaCenter;\\\\n\\\\nuniform  mediump float u_width;\\\\nuniform vec2 u_offset;  // polygin 拖动平移的时候使用\\\\n\\\\nvarying float v_distance;\\\\nvarying float v_width;\\\\nvarying vec2 v_normal;\\\\nvarying float v_flag;\\\\nvarying vec4 v_pos;\\\\n\\\\n#define WORLD_SIZE 20037508.342789244\\\\n\\\\nvoid main(){\\\\n\\\\n    float width = u_width;\\\\n    float cosValue = dot(a_normal , a_dir);\\\\n\\\\n    v_distance = a_distance + (cosValue * width *0.5)*u_meter_per_pixel;\\\\n    // v_distance = a_distance;\\\\n\\\\n    vec2 pos = a_pos;\\\\n    pos.x+=u_localDeltaCenter.x + u_offset.x;\\\\n    pos.y+=u_localDeltaCenter.y + u_offset.y;\\\\n    gl_Position = u_matrix * vec4(pos + a_normal * width * u_meter_per_pixel * 0.5, 0, 1);\\\\n    v_pos = gl_Position;\\\\n}\\";var lineUniforms$1={u_width:\\"float\\",u_dashType:\\"int\\",u_matrix:\\"mat4\\",u_offset:\\"vec2\\",u_meter_per_pixel:\\"float\\",u_color:\\"vec4\\",u_dash:\\"vec3\\",u_localDeltaCenter:\\"vec2\\",u_skyHeight:\\"float\\",u_viewHeight:\\"float\\"};var lineAttributes$1={a_pos:{Oe:\\"vec2\\",Me:\\"float32\\"},a_normal:{Oe:\\"vec2\\",Me:\\"float32\\"},a_distance:{Oe:\\"float\\",Me:\\"float32\\"},a_dir:{Oe:\\"vec2\\",Me:\\"float32\\"}};var linePatternUniforms={u_width:\\"float\\",u_matrix:\\"mat4\\",u_offset:\\"vec2\\",u_meter_per_pixel:\\"float\\",u_meter_per_pixel_optimal:\\"float\\",u_localDeltaCenter:\\"vec2\\",u_texture:\\"sampler2D\\",u_iconsize:\\"vec2\\",u_dir_color:\\"vec3\\",u_custom_img_flag:\\"bool\\",u_skyHeight:\\"float\\",u_viewHeight:\\"float\\",u_timer:\\"float\\",u_animate:\\"bool\\",u_speed:\\"float\\",u_size_scale:\\"float\\"};var linePatternAttributes={a_pos:{Oe:\\"vec2\\",Me:\\"float32\\"},a_normal:{Oe:\\"vec2\\",Me:\\"float32\\"},a_distance:{Oe:\\"float\\",Me:\\"float32\\"},a_dir:{Oe:\\"vec2\\",Me:\\"float32\\"}};var lineGradientUniforms={u_width:\\"float\\",u_matrix:\\"mat4\\",u_offset:\\"vec2\\",u_meter_per_pixel:\\"float\\",u_localDeltaCenter:\\"vec2\\",u_texture:\\"sampler2D\\",u_total_distance:\\"float\\",u_skyHeight:\\"float\\",u_viewHeight:\\"float\\"};var polyline={uniforms:lineUniforms$1,attributes:lineAttributes$1,vertexSource:lineVertextString$2,fragmentSource:lineFragmentString$2};var polylinePattern={uniforms:linePatternUniforms,attributes:linePatternAttributes,vertexSource:linePatternVertextString,fragmentSource:linePatternFragmentString};var polylineGradient={uniforms:lineGradientUniforms,attributes:linePatternAttributes,vertexSource:lineGradientVertextString,fragmentSource:lineGradinetFragmentString};var maskFragmentString=\\"precision highp float;\\\\n// uniform float u_opacity;\\\\nuniform vec4 u_color;\\\\n\\\\n// varying vec4 v_color;\\\\n\\\\nvoid main() {\\\\n    gl_FragColor = u_color;\\\\n    // gl_FragColor = vec4(0, 0, 0, 0);\\\\n}\\";var maskVertextString=\\"precision highp float;\\\\nuniform mat4 u_mvpMatrix;\\\\nuniform vec2 u_deltaCenter;\\\\nattribute vec2 a_pos;\\\\n\\\\nvoid main() {\\\\n    gl_Position = u_mvpMatrix * vec4(a_pos.xy+u_deltaCenter, 0, 1);\\\\n}\\\\n\\";var maskUniforms={u_mvpMatrix:\\"mat4\\",u_color:\\"vec4\\",u_deltaCenter:\\"vec2\\"};var maskAttributes={a_pos:{Me:\\"float32\\",Oe:\\"vec2\\"}};var mask={uniforms:maskUniforms,attributes:maskAttributes,vertexSource:maskVertextString,fragmentSource:maskFragmentString};var programs={fill:fill,fillPattern:fillPattern,sky:sky,skyPattern:skyPattern,mask:mask,fillExtrusion:fillExt,fillExtrusionPattern:fillExtPattern,raster:raster,labelsLayer:labelsLayer,fillOutline:fillOutline,line:line,combineText:combineText,debugImage:debugImage,circle:circle,circleAttr:circleAttr,point:point,polyline:polyline,\\"polyline-pattern\\":polylinePattern,\\"polyline-gradient\\":polylineGradient};var ProgramManager=function(){function e(e){this.context=e;this.context=e;this.cache={}}e.prototype.Un=function(){return this.Bn(\\"circle\\")};e.prototype.kee=function(){return this.Bn(\\"circleAttr\\")};e.prototype.Cee=function(){return this.Bn(\\"point\\")};e.prototype.rS=function(){return this.Bn(\\"sky\\")};e.prototype.EB=function(){return this.Bn(\\"skyPattern\\")};e.prototype.aS=function(){return this.Bn(\\"mask\\")};e.prototype.Wn=function(){return this.Bn(\\"fill\\")};e.prototype.aH=function(){return this.Bn(\\"fillPattern\\")};e.prototype.k_=function(){return this.Bn(\\"fillExtrusion\\")};e.prototype.sH=function(){return this.Bn(\\"fillExtrusionPattern\\")};e.prototype.Gn=function(){return this.Bn(\\"raster\\")};e.prototype.Zn=function(){var e=this.context;var r=e.gl;var t=\\"labelsLayer\\";if(!this.cache[t]){var i=r.getParameter(r.MAX_TEXTURE_IMAGE_UNITS);var a=Math.min(i,16,TextureMaxLength);var n=programs[t];var o=[];for(var f=0;f<a;f++){o.push((f>0?\\"else \\":\\" \\")+\\"if(texIdx==\\"+f+\\"){ distColor = texture2D(u_texture[\\"+f+\\"], v_texcoord); }\\")}n.vertexSource=n.vertexSource.replace(/_TotalTextureLenTwice/g,(a*2).toString()).replace(/_TotalTextureLen/g,a.toString());n.fragmentSource=n.fragmentSource.replace(/_TotalTextureLen/g,a.toString()).replace(/__SmpColorLoop__/g,o.join(\\"\\\\n\\"))}return this.Bn(t)};e.prototype.Yn=function(){return this.Bn(\\"fillOutline\\")};e.prototype.Vn=function(){return this.Bn(\\"line\\")};e.prototype.Xn=function(){return this.Bn(\\"polyline\\")};e.prototype.M_=function(){return this.Bn(\\"polyline-pattern\\")};e.prototype.sS=function(){return this.Bn(\\"polyline-gradient\\")};e.prototype.Hn=function(){return this.Bn(\\"combineText\\")};e.prototype.Jn=function(){return this.Bn(\\"debugImage\\")};e.prototype.destroy=function(){for(var e in this.cache){if(this.cache.hasOwnProperty(e)){var r=this.cache[e];r.destroy();delete this.cache[e]}}};e.prototype.Bn=function(e){if(this.cache[e]){return this.cache[e]}var r=programs[e];if(r){this.cache[e]=new Program(this.context,r.vertexSource,r.fragmentSource,r.attributes,r.uniforms,e)}return this.cache[e]};return e}();var Util$8=AMap[\\"Util\\"];var LandRender=function(r){__extends(e,r);function e(){var e=r.call(this)||this;e.CLASS_NAME=\\"AMap.Land\\";e.e_=[0,0,0,0];e.Qn={color:[.9882352941176471,.9764705882352941,.9490196078431372,1]};return e}e.prototype.renderFrame=function(e,r,t,i,a){return};return e}(LayerRender);var MapRenderBase=function(){function e(e){this.map=e}e.prototype.lS=function(e,r){var t=this.map.fS();var i=t.uS();var a={};for(var n in i){if(i.hasOwnProperty(n)){var o=i[n];var f=r.uo.getData(o.co(),r.viewState,this.context||null);a[n]=f}}t.cS(e,r,a)};return e}();var Support$7=M[\\"Support\\"];var DomUtil$1=AMap[\\"DomUtil\\"];var utils$1=AMap[\\"Util\\"];var scale$4=Support$7.scale;var MapRender=function(t){__extends(e,t);function e(e){var r=t.call(this,e)||this;r.map=e;r.gl=e[\\"getGL\\"]();r.io=r.gl.canvas;r.gl.getExtension(\\"OES_standard_derivatives\\");r.gl.getExtension(\\"OES_element_index_uint\\");r.context=new Context(r.gl);r.oo=new ProgramManager(r.context);r.z_=e.z_;r.R_=e.R_;r.no=new LandRender;r.Pee();r.uee=r.context.createTexture({height:4096,width:4096,data:null});r.uee.bind(r.context.gl.CLAMP_TO_EDGE,r.context.gl.LINEAR,r.context.gl.LINEAR);return r}e.prototype.getMapState=function(){return this.map&&this.map.getMapState()||{}};e.prototype.Lee=function(){return this.map};e.prototype.to=function(){if(this.map){this.map.setNeedUpdate(true)}};e.prototype.renderFrame=function(e){if(e.size[0]*scale$4!==this.io.width){this.io.width=e.size[0]*scale$4;this.io.style.width=e.size[0]+\\"px\\"}if(e.size[1]*scale$4!==this.io.height){this.io.height=e.size[1]*scale$4;this.io.style.height=e.size[1]+\\"px\\"}this.context.be.set([0,0,this.io.width,this.io.height]);this.context.clear({stencil:true,color:true,depth:true});var r=e.viewState.zoom;var t=e.layers.sort(function(e,r){if(e.CLASS_NAME===\\"AMap.MarkLayer\\"){return 1}else{return e.getLayerConfig().zIndex-r.getLayerConfig().zIndex}});this.no.renderFrame(this.oo,this.map.options.backgroundColor,e,{},this);this.map.so.update(this.oo);var i=this.map.TL();if(!i&&this.map.bZ.MZ.gY.Kv){this.uee.update(this.map.bZ.MZ.gY.mY);this.map.bZ.MZ.gY.Kv=false}if(this.map.bZ.MZ.drawMode!==\\"fast\\"&&(this.map.bZ.dynamic.get(\\"firstLabelDataAllLoaded\\")||this.map.bZ.dynamic.get(\\"firstLabelLayerDataAllLoaded\\"))){this.lS(this.oo,e)}else if(this.map.bZ.MZ.drawMode===\\"fast\\"&&(this.map.bZ.dynamic.get(\\"firstLabelDataAllLoaded\\")||this.map.bZ.dynamic.get(\\"firstLabelLayerDataAllLoaded\\"))&&!i){this.lS(this.oo,e)}var a;var n=true;for(var o=0,f=t.length;o<f;o+=1){a=t[o];var s=a.getState();var u=a.getLayerConfig().zooms;var l=s.opacity>0;if(a.CLASS_NAME===\\"AMap.IndoorMap\\"){l=s.opacity>=0}if(s.visible&&l&&utils$1.dS(r,u)||a.CLASS_NAME===\\"AMap.CustomLayer\\"){var v=a.getRender();if(v){if(!a.lo()){n=false}var c=e.uo.getData(t[o].co(),e.viewState,this.context);if(c){a.beforeRender();v.renderFrame(this.oo,c,e,s,this,t[o],c.fo);a.afterRender()}}}}if(!this.map.complete&&n){this.map.emit(\\"complete\\");this.map.complete=true}if(this.map[\\"getView\\"]()&&!this.map[\\"getView\\"]().h_()){this.map.getView().aD();this.map.emit(\\"viewchange\\",{zoom:e.viewState.zoom,center:e.viewState.center,pitch:e.viewState.pitch,rotation:e.viewState.rotation})}if(!this.map.bZ){return}var h=this.map.bZ.dynamic.get(\\"stamp\\");var d=Date.now();this.map.bZ.dynamic.set(\\"stamp\\",d);var _=Math.floor(1e3/(d-h));this.map.bZ.MZ.tY.update();if(_>=50){this.map.bZ.MZ.tY.RZ(\\"default\\")}if(this.map.bZ.MZ.tY.BZ(\\"default\\")>0||this.map.bZ.MZ.gY.Kv){this.to()}};e.prototype.destroy=function(){if(this.oo&&this.oo[\\"destroy\\"]){this.oo.destroy()}if(this.R_&&this.R_[\\"destroy\\"]){this.R_.destroy();delete this.R_}if(this.context){delete this.context}};e.prototype.Pee=function(){var e=this;this.map.bZ.MZ.tY.add({NZ:function(){e.oo.Hn()},UZ:function(){return Boolean(e.oo.cache[\\"combineText\\"])},group:\\"default\\",FZ:function(){return 1}});if(this.map[\\"getViewMode_\\"]()===\\"3D\\"){this.map.bZ.MZ.tY.add({NZ:function(){e.oo.rS()},UZ:function(){return Boolean(e.oo.cache[\\"sky\\"])},group:\\"default\\",FZ:function(){return 1}})}if(!this.map.yS()){this.map.bZ.MZ.tY.add({NZ:function(){e.oo.Yn()},UZ:function(){return Boolean(e.oo.cache[\\"fillOutline\\"])},group:\\"default\\",FZ:function(){return 1}})}this.map.bZ.MZ.tY.add({NZ:function(){e.oo.Wn()},UZ:function(){return Boolean(e.oo.cache[\\"fill\\"])},group:\\"default\\",FZ:function(){return 1}});this.map.bZ.MZ.tY.add({NZ:function(){e.oo.Vn()},UZ:function(){return Boolean(e.oo.cache[\\"line\\"])},group:\\"default\\",FZ:function(){return 1}});this.map.setNeedUpdate(true)};return e}(MapRenderBase);M.Eee=MapRender;M.WebGLRender=MapRender;M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.NebulaLayer\\",NebulaRender);M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.Buildings\\",BuildingRender);M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.Inner.LabelsLayer\\",TileLabelsLayerRender);M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.LabelsLayer\\",LabelsLayerRender);M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.ImageLayer\\",ImageRender);M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.CanvasLayer\\",ImageRender);M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.RasterLayer\\",RasterLayerRender);M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.TileLayer.Flexible\\",RasterLayerRender);M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.TileLayer.RoadNet\\",RasterLayerRender);M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.TileLayer\\",RasterLayerRender);M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.TileLayer.Satellite\\",RasterLayerRender);M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.TileLayer.Traffic\\",VectorTrafficRender);M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.WMTSLayer\\",RasterLayerRender);M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.TileLayer.WMS\\",RasterLayerRender);M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.TileLayer.WMTS\\",RasterLayerRender);M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.CustomLayer\\",CustomRender);M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.GLCustomLayer\\",GLCustomRender);M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.VTLayer\\",VTRender);M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.SkyLayer\\",SkyLayerRender);M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.MaskLayer\\",MaskLayerRender);M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.MapboxLayer\\",MapboxRender);M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.VectorLayer\\",OverlayRender);M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.VectorSvgLayer\\",OverlayRender);M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.IndoorMap\\",IndoorRender);M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.DistrictLayer\\",DistrictRender);M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.DistrictLayer.World\\",DistrictRender);M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.DistrictLayer.Country\\",DistrictRender);M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.DistrictLayer.Province\\",DistrictRender);M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.MapboxVectorTileLayer\\",MapboxVTRender);M[\\"LayerRenderManager\\"][\\"addLayerRender\\"](\\"AMap.MarkLayer\\",RasterLayerRender)})(); "}')
            localStorage.setItem("TDT_components1",'T.LocalSearch=function(t,i){this.map=t?t:null,this.config=i&&"undefined"!=typeof i?i:{},this.count="undefined"!=typeof this.config.pageCapacity?this.config.pageCapacity:10,this.keyWord=null,this.mapBound=null,this.level=null,this.bounds=null,this.specifyAdminCode=null,this.queryRadius=null,this.pointLonlat=null,this.start=0,this.countNumber=0,this.onSearchComplete=null,this.queryType=1,this.config&&(this.onSearchComplete=this.config.onSearchComplete?this.config.onSearchComplete:null,this.queryType=this.config.queryType?this.config.queryType:1),this.map&&(this.bounds=this._s(),this.mapBound=this._s(),this.level=this.map.getZoom()),this.type=null,this.result=null,this.lsResult=null,this.searchServerUrl=T.w.E},T.LocalSearch.prototype={_s:function(t){var i=this.map.getBounds();t&&(i=t);var e=i.getSouthWest(),s=i.getNorthEast(),n=e.getLng()+","+e.getLat()+","+s.getLng()+","+s.getLat();return n},setSpecifyAdminCode:function(t){this.specifyAdminCode=t},getSpecifyAdminCode:function(){return this.specifyAdminCode},clearSpecifyAdminCode:function(){this.specifyAdminCode=null},setQueryType:function(t){this.queryType=t},getQueryType:function(){return this.queryType},search:function(t,i){(this.keyWord!=t&&"undefined"!=typeof t||this.queryType!=i)&&(this.start=0),this.keyWord=t?t:this.keyWord,this.queryType=i?i:this.queryType;var e="{";this.keyWord&&(e+=\'"keyWord":"\'+this.keyWord+\'",\'),e+=\'"level":"\'+this.map.getZoom()+\'",\',e+=\'"mapBound":"\'+this._s()+\'",\',e+=\'"queryType":"\'+this.queryType+\'",\',e+=\'"start":"\'+this.start+\'",\',this.specifyAdminCode&&(e+=\'"specify":"\'+this.specifyAdminCode+\'",\'),e+=\'"count":"\'+this.count+\'"}\',this.ms(e)},searchInBounds:function(t,i){(this.keyWord!=t&&"undefined"!=typeof t||2!=this.queryType)&&(this.start=0),this.bounds=i?i:this.bounds,this.keyWord=t?t:this.keyWord,this.queryType=2;var e="{";this.keyWord&&(e+=\'"keyWord":"\'+this.keyWord+\'",\'),e+=\'"level":"\'+this.map.getZoom()+\'",\',e+=\'"mapBound":"\'+this._s(this.bounds)+\'",\',e+=\'"queryType":2,\',e+=\'"start":"\'+this.start+\'",\',e+=\'"count":"\'+this.count+\'"}\',this.ms(e)},searchNearby:function(t,i,e){(this.keyWord!=t&&"undefined"!=typeof t||3!=this.queryType)&&(this.start=0),this.keyWord=t?t:this.keyWord,this.queryType=3,this.centerLngLat=i?i:null,this.radius=e?e:null;var s="{";this.keyWord&&(s+=\'"keyWord":"\'+this.keyWord+\'",\'),s+=\'"level":"\'+this.map.getZoom()+\'",\',s+=\'"mapBound":"\'+this._s()+\'",\',s+=\'"pointLonlat":"\'+this.centerLngLat.getLng()+","+this.centerLngLat.getLat()+\'",\',s+=\'"queryRadius":"\'+e+\'",\',s+=\'"queryType":3,\',s+=\'"start":"\'+this.start+\'",\',s+=\'"count":"\'+this.count+\'"}\',this.ms(s)},ms:function(t){var i=T.ScriptLoader.getObject(),e=""!=T.tk?"&tk="+window.TMAP_AUTHKEY:"";i.load(T.w.R+encodeURIComponent(encodeURIComponent(this.searchServerUrl+"/v2/search?postStr="+t+"&type=query"+e)),"UTF-8",this,this.QD)},QD:function(t){this.result=t,this.lsResult=new T.LocalSearchResult(t,this),this.onSearchComplete&&this.onSearchComplete(this.lsResult)},getResults:function(){return this.lsResult},clearResults:function(){this.lsResult=null},gotoPage:function(t,i){this.qD(t,i)},setPageCapacity:function(t){this.count=numl},getPageCapacity:function(){return this.count},setSearchCompleteCallback:function(t){this.onSearchComplete=t},qD:function(t,i){if(this.countPage*this.count<=0||t<0||t>this.countPage*this.count)return!1;if("localsearch"==i)this.countPage*this.count==t&&(t-=this.count),this.start=t;else{if(t>this.countPage||t<=0)return;this.start=(t-1)*this.count}3==this.queryType?this.searchNearby(this.keyWord,this.centerLngLat,this.radius):2==this.queryType?this.searchInBounds(this.keyWord,this.bounds):this.search(this.keyWord,this.queryType)},firstPage:function(){return this.qD(0,"localsearch")},nextPage:function(){return this.qD(this.start+this.count,"localsearch")},previousPage:function(){return this.qD(this.start-this.count,"localsearch")},lastPage:function(){return this.qD(Math.floor(this.countNumber/this.count)*this.count,"localsearch")},getCountNumber:function(){return this.countNumber},getCountPage:function(){return this.countPage},getPageIndex:function(){return this.start/this.count+1},setServiceUrl:function(t){this.searchServerUrl=t},getServiceUrl:function(){return this.searchServerUrl}},T.LocalSearchResult=function(t,i){this.result=t?t:{},this.obj=i?i:null,this.resultType="undefined"!=typeof this.result.resultType&&this.result.resultType,this.count="undefined"!=typeof this.result.count&&this.result.count,this.keyWord="undefined"!=typeof this.result.keyWord&&this.result.keyWord,this.pois="undefined"!=typeof this.result.pois&&this.result.pois,this.statistics="undefined"!=typeof this.result.statistics&&this.result.statistics,this.area="undefined"!=typeof this.result.area&&this.result.area,this.suggests="undefined"!=typeof this.result.suggests&&this.result.suggests,this.prompt="undefined"!=typeof this.result.prompt&&this.result.prompt,this.lineData="undefined"!=this.result.lineData&&this.result.lineData,this.pois&&(this.obj.countNumber=parseInt(this.count),this.obj.countPage=Math.ceil(this.obj.countNumber/this.obj.count))},T.LocalSearchResult.prototype={getResultType:function(){return this.resultType},getCount:function(){return this.count},getKeyword:function(){return this.keyWord},getPois:function(){return this.pois},getStatistics:function(){return this.statistics},getArea:function(){return this.area},getSuggests:function(){return this.suggests},getPrompt:function(){return this.prompt},getLineData:function(){return this.lineData},getLandMarkCount:function(){return this.landmarkcount}},T.Geocoder=function(){},T.Geocoder.prototype={getLocation:function(t,i){this.type=1,this.param="postStr";var e=t.getLng(),s=t.getLat();this.fun=i?i:null;var n="{";n+=\'"lon":"\'+e+\'",\',n+=\'"lat":"\'+s+\'",\',n+=\'"appkey":"8a7b9aac0db21f9dd995e61a14685f05",\',n+=\'"ver":"1"}\',this.ms(n)},getPoint:function(t,i){this.type=0,this.param="ds",this.fun=i?i:null;var e=\'{"keyWord":"\'+t+\'"}\';this.ms(e)},ms:function(t){var i=T.ScriptLoader.getObject(),e=""!=T.tk?"&tk="+window.TMAP_AUTHKEY:"";i.load(T.w.R+encodeURIComponent(encodeURIComponent(T.w.E+"/geocoder?"+this.param+"="+t+"&type=geocode"+e)),"UTF-8",this,this.QD)},QD:function(t){this.result=t,this.lsResult=new T.GeocoderResult(this.result,this),this.fun&&this.fun(this.lsResult)}},T.GeocoderResult=function(t,i){this.result=t?t:null,this.resultObj=this.result.result?this.result.result:null,this.status=this.result.status?this.result.status:1,this.msg=this.result.msg?this.result.msg:null,this.location=this.resultObj&&this.resultObj.location?this.resultObj.location:null,null==this.location&&(this.location=this.result&&this.result.location?this.result.location:null),this.formatted_address=this.resultObj&&this.resultObj.formatted_address?this.resultObj.formatted_address:null,this.addressComponent=this.resultObj&&this.resultObj.addressComponent?this.resultObj.addressComponent:null},T.GeocoderResult.prototype={getStatus:function(){return parseInt(this.status)},getMsg:function(){return"ok"==this.msg?"OK":this.msg},getLocationPoint:function(){return this.location?new T.LngLat(this.location.lon,this.location.lat):null},getLocationLevel:function(){return this.location?this.location.level:null},getAddress:function(){return this.formatted_address},getAddressComponent:function(){return this.addressComponent?new T.AddressComponent(this.addressComponent):null}},T.AddressComponent=function(t){this.addressComponent=t?t:null,this.poi=this.addressComponent.poi?this.addressComponent.poi:null,this.road_distance=this.addressComponent.road_distance?this.addressComponent.road_distance:null,this.poi_distance=this.addressComponent.poi_distance?this.addressComponent.poi_distance:null,this.address_distance=this.addressComponent.address_distance?this.addressComponent.address_distance:null,this.address_position=this.addressComponent.address_position?this.addressComponent.address_position:null,this.address=this.addressComponent.address?this.addressComponent.address:null,this.road=this.addressComponent.road?this.addressComponent.road:null,this.poi_position=this.addressComponent.poi_position?this.addressComponent.poi_position:null,this.city=this.addressComponent.city?this.addressComponent.city:null},TMAP_TRANSIT_POLICY_LEAST_TIME=1,TMAP_TRANSIT_POLICY_LEAST_TRANSFER=2,TMAP_TRANSIT_POLICY_LEAST_WALKING=4,TMAP_TRANSIT_POLICY_AVOID_SUBWAYS=8,T.TransitRoute=function(t,i){this.jE=t,this.options=i?i:{},this.searchServerUrl=T.w.E,this.type="busline",i&&i.policy&&(this.policy=i.policy),i&&i.onSearchComplete&&(this.onSearchComplete=i.onSearchComplete),this.resultCode=null},T.TransitRoute.prototype={search:function(t,i){if(t&&i){this.postObj={},this.postObj.startposition=t.lng+","+t.lat,this.postObj.endposition=i.lng+","+i.lat,this.postObj.linetype=this.policy;var e=""!=T.tk?"&tk="+window.TMAP_AUTHKEY:"",s=T.w.R+encodeURIComponent(encodeURIComponent(this.searchServerUrl+"/transit?postStr="+JSON.stringify(this.postObj)+"&type="+this.type+e));this.query(s)}},query:function(t){var i=T.ScriptLoader.getObject();i.load(t,"UTF-8",this,this.callback)},callback:function(t){this.resultCode=t.resultCode,this.WD=new T.TransitRouteResult,this.WD.Ns(t),this.WD&&this.onSearchComplete&&this.onSearchComplete(this.WD)},setPolicy:function(t){this.policy=t},getResults:function(){return this.WD?this.WD:null},clearResults:function(){this.WD=null},setSearchCompleteCallback:function(t){this.onSearchComplete=t},getStatus:function(){return this.resultCode}},T.TransitRouteResult=function(){},T.TransitRouteResult.prototype={Ns:function(t){if(this._TransitRoutePlans=[],this.resultCode=t.resultCode,0!=this.resultCode)return!1;var i=t.results[0].lines;this.hasSubway=t.hasSubway,this.results=t.results[0];for(var e=0;e<i.length;e++){var s=i[e],n=new T.TransitRoutePlan;n.LineType=t.results[0].lineType,n.LineName=s.lineName;var o=n.segments=s.segments,h=n.NumSegments=o.length,r=0,a=0;n._TransitRouteLines=[];for(var u=0;u<h;u++){var l=new T.TransitRouteLine,c=o[u];l.SegmentType=c.segmentType,l.StationEnd=c.stationEnd,l.StationStart=c.stationStart;var f=l.SegmentLine=c.segmentLine?c.segmentLine:null,d=f[0];d&&(d.segmentDistance&&(r+=d.segmentDistance),d.segmentTime&&(a+=d.segmentTime),n._TransitRouteLines.push(l))}n.Distance=r,n.Duration=a,this._TransitRoutePlans.push(n)}},getNumPlans:function(){return this._TransitRoutePlans.length},getPlan:function(t){return this._TransitRoutePlans.length-1<t?null:this._TransitRoutePlans[t]}},T.TransitRouteLine=function(){},T.TransitRouteLine.prototype={getSegmentType:function(){return this.SegmentType&&this.SegmentType>-1?this.SegmentType:null},getStationStart:function(){return this.StationStart?this.StationStart:null},getStationEnd:function(){return this.StationEnd?this.StationEnd:null},getSegmentLine:function(){return this.SegmentLine?this.SegmentLine:null}},T.TransitRoutePlan=function(){},T.TransitRoutePlan.prototype={getNumSegments:function(){return this.NumSegments?this.NumSegments:0},getDetails:function(t){return this._TransitRouteLines[t]?this._TransitRouteLines[t]:null},getLineName:function(){for(var t=this.LineName.split("|"),i=0;i<t.length;i++)t[i]||t.splice(i,1);return t},getDistance:function(){return this.Distance?this.Distance:0},getDuration:function(){return this.Duration?this.Duration:0},getLineType:function(){return this.LineType&&this.LineType>-1?this.LineType:null}},T.BusLineSearch=function(t,i){this.jE=t,this.options=i?i:{},this.searchServerUrl=T.w.E,i&&i.onGetBusListComplete&&(this.onGetBusListComplete=i.onGetBusListComplete),i&&i.onGetBusLineComplete&&(this.onGetBusLineComplete=i.onGetBusLineComplete)},T.BusLineSearch.prototype={getBusList:function(t){if(this.jE){var i={};i.keyWord=t,i.level=""+this.jE.getZoom();var e=this.jE.getBounds();i.mapBound=e.getSouthWest().lng+","+e.getSouthWest().lat+","+e.getNorthEast().lng+","+e.getNorthEast().lat,i.queryType="1",i.start="0",i.count="10";var s="query",n="{";n=n+\'"keyWord":"\'+i.keyWord+\'",\',n=n+\'"level":"\'+i.level+\'",\',n=n+\'"mapBound":"\'+i.mapBound+\'",\',n=n+\'"queryType":"\'+i.queryType+\'",\',n=n+\'"start":"\'+i.start+\'",\',n=n+\'"count":"\'+i.count,n+=\'"}\';var o=T.w.R+encodeURIComponent(encodeURIComponent(this.searchServerUrl+"/search?postStr="+n+"&type="+s+"&tk="+T.w.TMAP_AUTHKEY));this.query(o,this.wD)}},getBusLine:function(t){var i={};i.uuid=t.uuid;var e="busline",s=T.w.R+encodeURIComponent(encodeURIComponent(this.searchServerUrl+"/transit?postStr="+JSON.stringify(i)+"&type="+e));this.query(s,this.ED)},query:function(t,i){var e=T.ScriptLoader.getObject();e.load(t,"UTF-8",this,i)},wD:function(t){if(5==t.resultType){var i=new T.BusListResult;i.items=t.lineData,this.onGetBusListComplete&&this.onGetBusListComplete(i)}},ED:function(t){var i=new T.BusLine;i.init(t),this.onGetBusLineComplete&&this.onGetBusLineComplete(i)},setGetBusListCompleteCallback:function(t){this.onGetBusListComplete=t},setGetBusLineCompleteCallback:function(t){this.onGetBusLineComplete=t}},T.BusListResult=function(){},T.BusListResult.prototype={getBusListItem:function(t){var i={};return i.stationNum=this.items[t].stationNum,i.name=this.items[t].name,i.uuid=this.items[t].uuid,i},getNumBusList:function(){return this.items?this.items.length:0}},T.BusLine=function(){},T.BusLine.prototype={init:function(t){this.lineName=t.linename,this.lineType=t.linetype,this.length=t.length,this.linePoint=t.linepoint,this.startTime=t.starttime,this.endTime=t.endtime,this.totalTime=t.totaltime,this.stationCount=t.stationnum,this.interval=t.interval,this.ticketcal=t.ticketcal,this.totalPrice=t.totalprice,this.increasedPrice=t.increasedprice,this.increasedStep=t.increasedstep,this.ismonTicket=t.ismonticket,this.isBidirectional=t.isbidirectional,this.isManual=t.ismanual,this.status=0,this.company=t.company,this.station=t.station},getNumBusStations:function(){return this.station?this.station.length:0},getBusStation:function(t){return this.station[t]?this.station[t]:null},eD:function(t){for(var i=t.split(";"),e=[],s=0;s<i.length;s++)if(i[s]){var n=i[s].split(","),o=new T.LngLat(n[0],n[1]);e.push(o)}return e},getPath:function(){return this.eD(this.linePoint)}},TMAP_DRIVING_POLICY_LEAST_TIME=0,TMAP_DRIVING_POLICY_LEAST_DISTANCE=1,TMAP_DRIVING_POLICY_AVOID_HIGHWAYS=2,TMAP_DRIVING_POLICY_WALK=3,T.DrivingRoute=function(t,i){this.map=t?t:null,this.config=i&&"undefined"!=typeof i?i:{},this.policy="undefined"!=typeof this.config.style?this.config.style:0,this.onSearchComplete="undefined"!=typeof this.config.onSearchComplete?this.config.onSearchComplete:null,this.midArr=[],this.orig=null,this.dest=null,this.result=null,this.drivingRouteResult=null,this.searchServerUrl=T.w.E},T.DrivingRoute.prototype={search:function(t,i,e){this.orig=t?t:this.orig,this.dest=i?i:this.dest,this.orig&&(this.origStr=this.orig.getLng()+","+this.orig.getLat()),this.dest&&(this.destStr=this.dest.getLng()+","+this.dest.getLat());var s="{";if(s+="\'orig\':\'"+this.origStr+"\',",s+="\'dest\':\'"+this.destStr+"\',",s+="\'style\':\'"+this.policy+"\',",e instanceof Array){for(var n=0;n<e.length;n++)this.midArr.push(e[n].getLng()+","+e[n].getLat());s+="\'mid\':\'"+this.midArr.join(";")+"\'"}else this.midArr=[];s+="}",this.ms(s)},ms:function(t){var i=""!=T.tk?"&tk="+window.TMAP_AUTHKEY:"",e=T.w.R+encodeURIComponent(encodeURIComponent(this.searchServerUrl+"/drive?postStr="+t+"&type=search"+i));this.query(e)},query:function(t){var i=T.ScriptLoader.getObject();i.load(t,"UTF-8",this,this.QD)},QD:function(t){this.result=t,this.drivingRouteResult=new T.DrivingRouteResult(this.result,this),this.onSearchComplete&&this.onSearchComplete(this.drivingRouteResult)},getResults:function(){return this.drivingRouteResult},clearResults:function(){this.drivingRouteResult=null},setSearchCompleteCallback:function(t){this.onSearchComplete=t},setPolicy:function(t){this.policy=t},getPolicy:function(){return this.policy}},T.DrivingRouteOptions=function(){return this.config={},this.config.policy=0,this.config.onSearchComplete=null,this.config},T.DrivingRouteResult=function(t,i){this.result=t?t:{},this.obj=i?i:null,this.results="undefined"!=typeof this.result.result?this.result.result:{},this.parameters="undefined"!=typeof this.results.parameters?this.results.parameters:{},this.styles="undefined"!=typeof this.parameters.style?this.parameters.style:{},this.start="undefined"!=typeof this.results.orig?this.results.orig:null,this.end="undefined"!=typeof this.results.dest?this.results.dest:null},T.DrivingRouteResult.prototype={getNumPlans:function(){return 1},getPlan:function(t){if(this.results){var i=new T.RoutePlan(this.results,this);return i}return null},getStart:function(){var t=this.start.split(",");return this.startObj=new T.LngLat(t[0],t[1]),this.startObj},getEnd:function(){var t=this.end.split(",");return this.endObj=new T.LngLat(t[0],t[1]),this.endObj},getPolicy:function(){return this.styles}},T.RoutePlan=function(t,i){this.result=t?t:{},this.obj=i?i:null,this.distance="undefined"!=typeof this.result.distance?parseFloat(this.result.distance):0,this.duration="undefined"!=typeof this.result.duration?parseFloat(this.result.duration):0,this.parameters="undefined"!=typeof this.result.parameters?this.result.parameters:{},this.mid="undefined"!=typeof this.parameters.mid?this.parameters.mid:"",this.styles="undefined"!=typeof this.parameters.style?this.parameters.style:0,this.routes="undefined"!=typeof this.result.routes?this.result.routes:{},this.simple="undefined"!=typeof this.result.simple?this.result.simple:{},this.simpleItem="undefined"!=typeof this.simple.item?this.simple.item:{}},T.RoutePlan.prototype={getDistance:function(){return this.distance},getDuration:function(){return this.duration},getWayPois:function(){return this.getLngLats(this.mid)},getPath:function(){return this.getLngLats(this.result.routelatlon)},getLngLats:function(t){for(var i=[],e=t.substring(0,t.length-1).split(";"),s=0;s<e.length;s++){var n=e[s].split(",");i.push(new T.LngLat(n[0],n[1]))}return i},getNumRoutes:function(){return this.simpleItem.length},getRoute:function(t){if(this.simpleItem){if("undefined"!=typeof this.simpleItem[t]){var i=t==this.simpleItem.length-1,e=new T.Route(this.simpleItem[t],this.routes,this,i);return e}return null}return null}},T.Route=function(t,i,e,s){if(this.simple=t?t:[],this.routes=i?i:{},this.obj=e?e:null,this.type=!!s&&s,this.routesItem="undefined"!=typeof this.routes.item?this.routes.item:[],this.id="undefined"!=typeof this.simple.id?this.simple.id:null,this.strguide="undefined"!=typeof this.simple.strguide?this.simple.strguide:null,this.streetNames="undefined"!=typeof this.simple.streetNames?this.simple.streetNames:null,this.lastStreetName="undefined"!=typeof this.simple.lastStreetName?this.simple.lastStreetName:null,this.linkStreetName="undefined"!=typeof this.simple.linkStreetName?this.simple.linkStreetName:null,this.signage="undefined"!=typeof this.simple.signage?this.simple.signage:null,this.tollStatus="undefined"!=typeof this.simple.tollStatus?this.simple.tollStatus:null,this.turnlatlon="undefined"!=typeof this.simple.turnlatlon?this.simple.turnlatlon:null,this.streetLatLon="undefined"!=typeof this.simple.streetLatLon?this.simple.streetLatLon:null,this.streetDistance="undefined"!=typeof this.simple.streetDistance?this.simple.streetDistance:0,this.segmentNumber="undefined"!=typeof this.simple.segmentNumber?this.simple.segmentNumber:0,this.segmentNumberArr=[],"number"!=typeof this.segmentNumber)for(var n=this.segmentNumber.split("-"),o=0;o<this.routesItem.length;o++){var h=1==this.type?this.routesItem.length:parseInt(n[1]);o>=parseInt(n[0])&&o<=h&&this.segmentNumberArr.push(this.routesItem[o])}else this.segmentNumberArr.push(this.routesItem[parseInt(this.segmentNumber)])},T.Route.prototype={getDescription:function(){return this.strguide},getNumSteps:function(){return this.segmentNumberArr.length},getStep:function(t){if("number"!=typeof this.segmentNumberArr[t]){var i=new T.Step(this.segmentNumberArr[t],this);return i}return null},getDistance:function(){for(var t=0,i=0;i<this.simpleItem.length;i++)t+=Math.floor(this.simpleItem[i].streetDistance);return t},getPath:function(){return this.obj.getLngLats(this.streetLatLon)},getPosition:function(){if(this.turnlatlon){var t=this.turnlatlon.split(",");return new T.LngLat(t[0],t[1])}return null},getIndex:function(){return this.id}},T.Step=function(t,i){this.routes=t?t:{},this.obj=i?i:null,this.id="undefined"!=typeof this.routes.id?this.routes.id:null,this.strguide="undefined"!=typeof this.routes.strguide?this.routes.strguide:"",this.signage="undefined"!=typeof this.routes.signage?this.routes.signage:0,this.streetName="undefined"!=typeof this.routes.streetName?this.routes.streetName:"",this.nextStreetName="undefined"!=typeof this.routes.nextStreetName?this.routes.nextStreetName:"",this.tollStatus="undefined"!=typeof this.routes.tollStatus?this.routes.tollStatus:"",this.turnlatlon="undefined"!=typeof this.routes.turnlatlon&&this.routes.turnlatlon},T.Step.prototype={getPosition:function(){if(this.turnlatlon){var t=this.turnlatlon.split(",");return new T.LngLat(t[0],t[1])}return null},getIndex:function(){return this.id},getDescription:function(){return this.strguide}},window.TDT_STATUS_SUCCESS=0,window.TDT_STATUS_CITY_LIST=1,window.TDT_STATUS_POSITION_UNAVAILABLE=2,window.TDT_STATUS_TIMEOUT=4,window.TDT_STATUS_PERMISSION_DENIED=3,window.TDT_STATUS_UNKNOWN_ERROR=5,T.GeolocationResult=function(){},T.Geolocation=function(){timeout=1e4,this.options={enableHighAccuracy:!0,eO:5e3,maximumAge:0}},T.Geolocation.prototype={getCurrentPosition:function(t,i){var e=T.extend({},this.options,i);this.callback=this.D(t,this);var s=this.D(this.RD,this),n=this.D(this.rD,this);if(!navigator||!navigator.geolocation){var o=new T.LocalCity;return o.location(this.callback),this.Status=window.TDT_STATUS_CITY_LIST,this}return this.id=navigator.geolocation.getCurrentPosition(s,n,e),this},getStatus:function(){return this.Status},RD:function(t){var i=t.coords.latitude,e=t.coords.longitude,s=new T.LngLat(e,i),n=t.coords.accuracy,o=new T.GeolocationResult;o.accuracy=n,o.lnglat=s,this.Status=window.TDT_STATUS_SUCCESS,this.callback(o)},rD:function(t){switch(t.code){case t.TIMEOUT:this.Status=TDT_STATUS_TIMEOUT;break;case t.POSITION_UNAVAILABLE:this.Status=window.TDT_STATUS_POSITION_UNAVAILABLE;break;case t.PERMISSION_DENIED:this.Status=window.TDT_STATUS_PERMISSION_DENIED;break;case t.UNKNOWN_ERROR:this.Status=TDT_STATUS_UNKNOWN_ERROR}this.callback(new T.GeolocationResult)},D:function(t,i){var e=Array.prototype.slice;if(t.D)return t.D.apply(t,e.call(arguments,1));var s=e.call(arguments,2);return function(){return t.apply(i,s.length?s.concat(e.call(arguments)):arguments)}}},T.LocalCityResult=function(){},T.LocalCity=function(){},T.LocalCity.prototype={location:function(t){window.callback=t,window.query=this.query;var i=T.w.IPSERVER+"?callback=query";this.getJsonp(i)},getJsonp:function(t,i){var e=document.getElementsByTagName("head")[0],s=document.createElement("script");s.setAttribute("src",t),s.onload=function(){e.removeChild(s),delete window.query,delete window.callback},e.appendChild(s)},query:function(t){var i=new T.LocalCityResult;i.level=t.level,i.lnglat=new T.LngLat(t.lon,t.lat),i.cityName=t.cityName,callback&&callback(i)}},T.AdministrativeDivision=function(t){},T.AdministrativeDivision.prototype={search:function(t,i){this.config=t,this.searchWord=this.config.searchWord?this.config.searchWord:null,this.searchType=this.config.searchType?this.config.searchType:0,this.needSubInfo=!!this.config.needSubInfo&&this.config.needSubInfo,this.needAll=!!this.config.needAll&&this.config.needAll,this.needPolygon=!!this.config.needPolygon&&this.config.needPolygon,this.needPre=!!this.config.needPre&&this.config.needPre,this.fun=i?i:null;var e="{";e+=\'"searchWord":"\'+this.searchWord+\'",\',e+=\'"searchType":"\'+this.searchType+\'",\',e+=\'"needSubInfo":"\'+this.needSubInfo+\'",\',e+=\'"needAll":"\'+this.needAll+\'",\',e+=\'"needPolygon":"\'+this.needPolygon+\'",\',e+=\'"needPre":"\'+this.needPre+\'"}\',this.ms(e)},ms:function(t){var i=T.ScriptLoader.getObject(),e=""!=T.tk?"&tk="+window.TMAP_AUTHKEY:"";i.load(T.w.R+encodeURIComponent(encodeURIComponent(T.w.E+"/administrative?postStr="+t+"&type=geocode"+e)),"UTF-8",this,this.QD)},QD:function(t){this.result=t,this.lsResult=new T.AdministrativeDivisionResult(this.result,this),this.fun&&this.fun(this.lsResult)}},T.AdministrativeDivisionResult=function(t,i){this.result=t?t:null,this.data=this.result.data?this.result.data:null,this.returncode=this.result.returncode?this.result.returncode:1,this.msg=this.result.msg?this.result.msg:null,this.dataversion=this.result.dataversion?this.result.dataversion:null},T.AdministrativeDivisionResult.prototype={getStatus:function(){return parseInt(this.returncode)},getMsg:function(){return this.msg},getDataVersion:function(){return this.dataversion},getData:function(){return this.data}},T.DataSources=function(){},T.DataSources.prototype={search:function(t,i){this.config=t||{},this.level=this.config.level||null,this.bound=this.config.bound||null,this.layers=this.config.layers||null,this.projection=this.config.projection||null,this.fun=i?i:null;var e="{";e+=\'"level":"\'+this.level+\'",\',e+=\'"bound":"\'+this.bound+\'",\',e+=\'"layers":"\'+this.layers+\'",\',e+=\'"projection":"\'+this.projection+\'"}\',this.ms(e)},ms:function(t){var i=T.ScriptLoader.getObject(),e=""!=T.tk?"&tk="+window.TMAP_AUTHKEY:"";i.load(T.w.R+encodeURIComponent(encodeURIComponent(T.w.E+"/isrange?postStr="+t+"&type=geocode"+e)),"UTF-8",this,this.QD)},QD:function(t){this.result=t,this.fun&&this.fun(this.result)}};')
            localStorage.setItem("TDT_components2",'T.PathEx=T.jT.extend({options:{color:"red",weight:5,opacity:.5},initialize:function(t,i){T.setOptions(this,i),this.iY(t)},getPath:function(){return this.ht},setLngLats:function(t){return this.iY(t),this.redraw()},iY:function(t){this.ht=t},getLngLats:function(){return this.ht},Oe:function(){this.jE&&this.rt()},rt:function(){this.bT.TD(this)},Rt:function(){this._points=[];for(var t=0;t<this.ht.length;t++){var i=!1;if(this.ht[t-1]){var e=this.jE.lngLatToLayerPoint(this.ht[t-1]),s=this.jE.lngLatToLayerPoint(this.ht[t]);0==e.distanceTo(s)&&(i=!0)}if(!i){var n=this.jE.kw(this.ht[t]);this._points.push(n)}}}}),T.SVG.M({pointsToPathEX:function(t,i){var e,s,n,o,h,r,a="";for(e=0,n=t.length;e<n;e++){for(h=t[e],s=0,o=h.length;s<o;s++)r=h[s],a+=T.oQ.MT?(s?"L":"M")+ +r.x+" "+r.y:(s?"L":"M")+ +Math.floor(r.x)+" "+Math.floor(r.y);a+=i?T.oQ.MT?"z":"x":""}return a||"M0 0"},calculateVector:function(t,i,e){i||(i=Math.PI/2),e||(e=1);var s,n,o,h,r,a,l=Math.sqrt(t.x*t.x+t.y*t.y);if(0==t.y)s=n=l*e*Math.cos(i)/t.x,t.x>0?(o=Math.sqrt(e*e-s*s),h=-o):t.x<0&&(h=Math.sqrt(e*e-s*s),o=-h),r=new T.Point(s,o),a=new T.Point(n,h);else{var u=-t.x/t.y,c=e*l*Math.cos(i)/t.y,i=1+u*u,f=2*u*c,p=c*c-e*e;s=(-f-Math.sqrt(f*f-4*i*p))/(2*i),n=(-f+Math.sqrt(f*f-4*i*p))/(2*i),o=u*s+c,h=u*n+c,t.y>=0?(r=new T.Point(s,o),a=new T.Point(n,h)):t.y<0&&(r=new T.Point(n,h),a=new T.Point(s,o))}return[r,a]},calculateMidpoint:function(t,i){var e=new T.Point((t.x+i.x)/2,(t.y+i.y)/2);return e},calculateIntersection:function(t,i,e,s){var n,o;return t.y*i.x-t.x*i.y==0?t.x*i.x>0||t.y*i.y>0?(n=(e.x+s.x)/2,o=(e.y+s.y)/2):(n=s.x,o=s.y):(n=(t.x*i.x*(s.y-e.y)+e.x*t.y*i.x-s.x*i.y*t.x)/(t.y*i.x-t.x*i.y),o=0!=t.x?(n-e.x)*t.y/t.x+e.y:(n-s.x)*i.y/i.x+s.y),new T.Point(n,o)},calculateAngle:function(t,i){var e=Math.atan2(t.y-i.y,t.x-i.x);return e<0&&(e+=2*Math.PI),e},calculateDistance:function(t,i){var e=Math.sqrt(Math.pow(t.x-i.x,2)+Math.pow(t.y-i.y,2));return e},cloneControlPoints:function(t){for(var i=[],e=0;e<t.length;e++)i.push(t[e].pQ());return i},calculateArc:function(t,i,e,s,n,o){(!n||1!=n&&n!=-1)&&(n=-1),o||(o=360);for(var h=Math.PI/o/2,r=h*n,a=Math.abs(s-e),l=[],u=e,c=0;c<a;c+=h){var f=new T.Point(Math.cos(u)*i+t.x,Math.sin(u)*i+t.y);l.push(f),u+=r,u=u<0?u+2*Math.PI:u,u=u>2*Math.PI?u-2*Math.PI:u}return l},createCloseCardinal:function(t){if(null==t||t.length<3)return t;var i=t[0];t.push(i);for(var e=t,s=[],n=.4,o=.005,h=e.length-1,r=0;r<=h-1;r++){if(r==h-1)var a=e[h-1],l=e[0],u=e[1];else var a=e[r],l=e[r+1],u=e[r+2];var c=new T.Point,f=new T.Point,p=new T.Point(l.x-a.x,l.y-a.y),d=new T.Point(u.x-l.x,u.y-l.y),y=Math.sqrt(p.x*p.x+p.y*p.y),g=Math.sqrt(d.x*d.x+d.y*d.y),m=new T.Point(p.x/y,p.y/y),v=new T.Point(d.x/g,d.y/g),w=new T.Point(m.x+v.x,m.y+v.y),E=Math.sqrt(w.x*w.x+w.y*w.y),x=new T.Point(w.x/E,w.y/E),P=(m.x*v.x+m.y*v.y)/1;Math.abs(1-P)<o?(c.x=l.x-v.x*y*n,c.y=l.y-v.y*y*n,f.x=l.x+m.x*g*n,f.y=l.y+m.y*g*n):(c.x=l.x-x.x*y*n,c.y=l.y-x.y*y*n,f.x=l.x+x.x*g*n,f.y=l.y+x.y*g*n),r==h-1?(s[0]=l,s[1]=f,s[3*(h-2)+2+3]=c,s[3*(h-2)+2+4]=e[h]):(s[3*r+2+0]=c,s[3*r+2+1]=l,s[3*r+2+2]=f)}return s},calculateCardinalPoints:function(t){if(null==t||t.length<3)return t;for(var i=t,e=[],s=.4,n=.5,o=.005,h=i.length-1,r=0;r<=h+1-3;r++){var a=i[r],l=i[r+1],u=i[r+2],c=new T.Point,f=new T.Point,p=new T.Point(l.x-a.x,l.y-a.y),d=new T.Point(u.x-l.x,u.y-l.y),y=Math.sqrt(p.x*p.x+p.y*p.y),g=Math.sqrt(d.x*d.x+d.y*d.y),m=new T.Point(p.x/y,p.y/y),v=new T.Point(d.x/g,d.y/g),w=new T.Point(m.x+v.x,m.y+v.y),E=Math.sqrt(w.x*w.x+w.y*w.y),x=new T.Point(w.x/E,w.y/E),P=(m.x*v.x+m.y*v.y)/1;if(Math.abs(1-P)<o?(c.x=l.x-v.x*y*s,c.y=l.y-v.y*y*s,f.x=l.x+m.x*g*s,f.y=l.y+m.y*g*s):(c.x=l.x-x.x*y*s,c.y=l.y-x.y*y*s,f.x=l.x+x.x*g*s,f.y=l.y+x.y*g*s),e[3*r+2+0]=c,e[3*r+2+1]=l,e[3*r+2+2]=f,0==r){var O=new T.Point,L=new T.Point(c.x-a.x,c.y-a.y),S=Math.sqrt(L.x*L.x+L.y*L.y),Q=new T.Point(L.x/S,L.y/S);O.x=a.x+Q.x*y*s*n,O.y=a.y+Q.y*y*s*n,e[3*r+0]=a,e[3*r+1]=O}if(r==h+1-3){var A=new T.Point,C=new T.Point(f.x-u.x,f.y-u.y),M=Math.sqrt(C.x*C.x+C.y*C.y),b=new T.Point(C.x/M,C.y/M);A.x=u.x+b.x*g*s*n,A.y=u.y+b.y*g*s*n,e[3*r+2+3]=A,e[3*r+2+4]=u}}return e},createBezier1:function(t,i,e){for(var s=[],n=0;n<t.length;n++)s[n]=t[n];for(var o,h,r,a=0,l=s.length,u=[],c=!0;c;){for(r=!0,o=0;o<l-3;o+=3){if(GetBezierGap(s,o)>i){for(r=!1,InciseBezier(s,o,u),s.splice(o+1,2),h=0;h<5;h++)s.splice(o+1+h,0,u[h+1]);o-=3,l=s.length}if(r)break}for(;a<l-1;)s[a]===s[a+1]&&(s.splice(a+1,1),l--),a++;c=!1}return new T.LineString(s)},calculatePointsFBZ2:function(t,i){i||(i=20);var e=[],s=.05;i>0&&(s=1/i);for(var n=0;n<t.length-2;){var o=t[n],h=t[n+1],r=t[n+2];e.push(o);for(var a=0;a<1;){var l=(1-a)*(1-a)*o.x+2*a*(1-a)*h.x+a*a*r.x,u=(1-a)*(1-a)*o.y+2*a*(1-a)*h.y+a*a*r.y,c=new T.Point(l,u);e.push(c),a+=s}n+=2,n>=t.length&&e.push(o)}var f=e[e.length-1],p=t[t.length-1];return f.equals(p)||e.push(p.pQ()),e},calculatePointsFBZ3:function(t,i){i||(i=20);var e=[],s=.05;i>0&&(s=1/i);for(var n=0;n<t.length-3;){var o=t[n],h=t[n+1],r=t[n+2],a=t[n+3];e.push(o);for(var l=0;l<1;){var u=(1-l)*(1-l)*(1-l)*o.x+3*l*(1-l)*(1-l)*h.x+3*l*l*(1-l)*r.x+l*l*l*a.x,c=(1-l)*(1-l)*(1-l)*o.y+3*l*(1-l)*(1-l)*h.y+3*l*l*(1-l)*r.y+l*l*l*a.y,f=new T.Point(u,c);e.push(f),l+=s}n+=3,n>=t.length&&e.push(o)}var p=e[e.length-1],d=t[t.length-1];return p.equals(d)||e.push(d.pQ()),e},calculateAngularBisector:function(t,i){var e=Math.sqrt(t.x*t.x+t.y*t.y),s=Math.sqrt(i.x*i.x+i.y*i.y);return new T.Point(t.x/e+i.x/s,t.y/e+i.y/s)},calculateIntersectionFromTwoCorner:function(t,i,e,s){e||(e=Math.PI/4),s||(s=Math.PI/4);var n=new T.Point(i.x-t.x,i.y-t.y),o=this.calculateVector(n,e,1),h=o[0],r=o[1],a=this.calculateVector(n,Math.PI-e,1),l=a[0],u=a[1],c=this.calculateIntersection(h,l,t,i),f=this.calculateIntersection(r,u,t,i);return[c,f]},InciseBezier:function(t,i,e){var s=[];s[0]=[],s[1]=[],s[2]=[];var n;for(n=0;n<3;n++)s[0][n]=new T.Point,s[0][n].x=(t[i+n].x+t[i+n+1].x)/2,s[0][n].y=(t[i+n].y+t[i+n+1].y)/2;for(n=0;n<2;n++)s[1][n]=new T.Point,s[1][n].x=(s[0][n].x+s[0][n+1].x)/2,s[1][n].y=(s[0][n].y+s[0][n+1].y)/2;return s[2][0]=new T.Point,s[2][0].x=(s[1][0].x+s[1][1].x)/2,s[2][0].y=(s[1][0].y+s[1][1].y)/2,e[0]=t[i],e[1]=s[0][0],e[2]=s[1][0],e[3]=s[2][0],e[4]=s[1][1],e[5]=s[0][2],e[6]=t[i+3],!0},GetBezierGap:function(t,i){for(var e=0,s=1;s<4;s++)Math.abs(t[i+s].x-t[i+s-1].x)>e&&(e=Math.abs(t[i+s].x-t[i+s-1].x)),Math.abs(t[i+s].y-t[i+s-1].y)>e&&(e=Math.abs(t[i+s].y-t[i+s-1].y));return e},calculateArrowLines:function(t,i,e,s){if(0==t.distanceTo(i))return[t,i];var n=[];e||(e=10),s||(s=Math.PI/6);var o=this.calculateDistance(t,i),h=this.toVector(t,i),r=this.calculateVector(h,s,o/e),a=new T.Point(r[0].x+i.x,r[0].y+i.y),l=new T.Point(r[1].x+i.x,r[1].y+i.y);return n.push(i),n.push(a),n.push(i),n.push(l),n},toVector:function(t,i){return new T.Point(t.x-i.x,t.y-i.y)},createBezier1:function(t,i,e){if(e)return this.calculatePointsFBZ3(t,e);for(var s=[],n=0;n<t.length;n++)s[n]=t[n];for(var o,h,r,a=0,l=s.length,u=[],c=!0;c;){for(r=!0,o=0;o<l-3;o+=3){if(this.GetBezierGap(s,o)>i){for(r=!1,this.InciseBezier(s,o,u),s.splice(o+1,2),h=0;h<5;h++)s.splice(o+1+h,0,u[h+1]);o-=3,l=s.length}if(r)break}for(;a<l-1;)s[a]===s[a+1]&&(s.splice(a+1,1),l--),a++;c=!1}return s}}),T.Curve=T.jT.extend({options:{},initialize:function(t,i){T.setOptions(this,i),this.iY(t)},getPath:function(){return this._coords},setPath:function(t){return this.iY(t),this.redraw()},iY:function(t){this._coords=t},Oe:function(){this.jE&&this.rt()},rt:function(){this.bT.tD(this)},Rt:function(){var t,i,e,s;this._points=[];for(var n=0;n<this._coords.length;n++)if(t=this._coords[n],"string"==typeof t||t instanceof String)this._points.push(t),e=t;else{switch(t=t instanceof T.dq?[t.lat,t.lng]:t,t.length){case 2:s=this.jE.kw(t),i=t;break;case 1:"H"==e?(s=this.jE.kw([i[0],t[0]]),i=[i[0],t[0]]):(s=this.jE.kw([t[0],i[1]]),i=[t[0],i[1]])}this._points.push(s)}}}),T.SVG.M({tD:function(t){this.iY(t,this.YD(t._points))},YD:function(t){for(var i,e,s="",n=0;n<t.length;n++)if(i=t[n],"string"==typeof i||i instanceof String)e=i,"Q"==e&&T.oQ.ielt9&&(e="qb"),s+=e;else switch(e){case"H":s+=i.x+",";break;case"V":s+=i.y+",";break;default:s+=i.x+","+i.y+" "}return(e=T.oQ.ielt9)&&(s+=" r 0 0 e"),s||"M0 0"}}),T.Arc=T.PathEx.extend({rt:function(){this.bT.UD(this)}}),T.SVG.M({UD:function(t){this.iY(t,this.uD(t._points))},uD:function(t,i){var e="",s=this.calculatePartsArc(t);return s&&(e=this.pointsToPathEX([s],i)),e||"M0 0"},calculatePartsArc:function(t){var i=this.cloneControlPoints(t),e=[];if(t.length<3&&(e=i),t.length>2){var s=i[0],n=i[1],o=i[2],h=this.calculateMidpoint(s,n),r=this.calculateMidpoint(n,o),a=new T.Point(n.x-s.x,n.y-s.y),l=new T.Point(o.x-n.x,o.y-n.y);if(Math.abs(a.x*l.y-l.x*a.y)<1e-5)return void e.push(s,o,n);var u,c,f=this.calculateVector(a)[1],p=this.calculateVector(l)[1],d=this.calculateIntersection(f,p,h,r),y=this.calculateDistance(d,s),g=this.calculateAngle(s,d),m=this.calculateAngle(n,d),v=this.calculateAngle(o,d),w=Math.PI,E=1,x=g,P=m;g>m?(x=m,P=g,u=n,c=s):(u=s,c=n);var O=P-x;(v<m&&v<g||v>m&&v>g)&&(E=-1,O=x+(2*w-P));var L=w/720/2,S=L*E;e.push(u);for(var Q=x,A=0;A<O-L;A+=L){Q+=S,Q=Q<0?Q+2*w:Q,Q=Q>2*w?Q-2*w:Q;var C=new T.Point(Math.cos(Q)*y+d.x,Math.sin(Q)*y+d.y);e.push(C)}e.push(c)}return e}}),T.Arch=T.Arc.extend({rt:function(){this.bT.ID(this)}}),T.SVG.M({ID:function(t){this.iY(t,this.uD(t._points,!0))}}),T.Sector=T.PathEx.extend({rt:function(){this.bT.iD(this)}}),T.SVG.M({iD:function(t){!t||!t._points||t._points.length<2||this.iY(t,this.OD(t._points,!0))},OD:function(t,i){var e="",s=this.calculatePartsSector(t);return s&&(e=this.pointsToPathEX([s],i)),e||"M0 0"},calculateAngle:function(t,i){var e=Math.atan2(t.y-i.y,t.x-i.x);return e<0&&(e+=2*Math.PI),e},calculatePartsSector:function(t){var i=this.cloneControlPoints(t),e=[];if(2==i.length){var s=i[0],n=i[1];e.push(s),e.push(n)}if(i.length>2){var o=i[0],h=i[1],r=i[i.length-1],a=this.calculateDistance(o,h),l=this.calculateAngle(h,o),u=this.calculateAngle(r,o);u<l&&(u=2*Math.PI+u);var t=this.calculateArc(o,a,l,u,1);t.unshift(o),e=e.concat(t)}return e}}),T.CloseCurve=T.PathEx.extend({rt:function(){this.bT.oD(this)}}),T.SVG.M({oD:function(t){t&&t._points&&this.iY(t,this.PD(t._points,!0))},PD:function(t,i){var e="",s=this.calculatePartsCloseCurve(t);return s&&(e=this.pointsToPathEX([s],i)),e.indexOf("NaN")>0&&(e=this.pointsToPathEX([t],i)),e||"M0 0"},calculateAngle:function(t,i){var e=Math.atan2(t.y-i.y,t.x-i.x);return e<0&&(e+=2*Math.PI),e},calculatePartsCloseCurve:function(t){var i=[],e=this.cloneControlPoints(t);if(e.length>2)for(var s=0;s<e.length-1;s++)if(0==e[s].distanceTo(e[s+1]))return e;if(this.components=[],e.length<=2)return e;if(e.length>2){var n=this.createCloseCardinal(e);i=i.concat(this.createBezier3(n,100))}return i},createBezier3:function(t,i){var e=this.calculatePointsFBZ3(t,i);return e}}),T.GatheringPlace=T.PathEx.extend({rt:function(){this.bT.pD(this)}}),T.SVG.M({pD:function(t){!t||!t._points||t._points.length<2||this.iY(t,this.AD(t._points,!0))},AD:function(t,i){var e="",s=this.calculatePartsGatheringPlace(t);return s&&(e=this.pointsToPathEX([s],i)),e.indexOf("NaN")>0&&(e=this.pointsToPathEX([t],i)),e||"M0 0"},calculatePartsGatheringPlace:function(t){if(t.length>2)for(var i=0;i<t.length-1;i++)if(0==t[i].distanceTo(t[i+1]))return t;if(this.components=[],t.length>1){var e=t[0],s=t[t.length-1],n=[],o=new T.Point(s.x-e.x,s.y-e.y),h=Math.sqrt(o.x*o.x+o.y*o.y),r=this.calculateVector(o,Math.PI/3,Math.sqrt(3)/12*h),a=r[0],l=new T.Point(a.x+e.x,a.y+e.y),u=new T.Point((e.x+s.x)/2,(e.y+s.y)/2),c=this.calculateVector(o,2*Math.PI/3,Math.sqrt(3)/12*h),f=c[0],p=new T.Point(f.x+s.x,f.y+s.y),d=this.calculateVector(o,Math.PI/2,.5*h),y=d[1],g=new T.Point(y.x+u.x,y.y+u.y),m=e.pQ(),v=s.pQ();n.push(m,l,u,p,v,g);var w=this.createCloseCardinal(n);return this.createBezier3(w,100)}}}),T.RoundRect=T.PathEx.extend({style:{color:"red",weight:5,opacity:.5,fillColor:"#0000FF",fillOpacity:.2,fill:!0},rt:function(){this.bT.aD(this)}}),T.SVG.M({aD:function(t){this.iY(t,this.SD(t._points,!0))},SD:function(t,i){var e="",s=this.calculatePartsRoundRect(t);return s&&(e=this.pointsToPathEX([s],i)),e||"M0 0"},calculatePartsRoundRect:function(t){var i=[];if(t.length>1){var e=t[0],s=t[t.length-1],n=Math.max(e.x,s.x),o=Math.min(e.x,s.x),h=Math.max(e.y,s.y),r=Math.min(e.y,s.y),a=1*Math.min(Math.abs(e.x-s.x),Math.abs(e.y-s.y))/10,l=new T.Point(o+a,h-a),u=new T.Point(n-a,h-a),c=new T.Point(n-a,r+a),f=new T.Point(o+a,r+a),p=this.calculateArc(l,a,Math.PI,Math.PI/2,-1,180),d=this.calculateArc(u,a,Math.PI/2,0,-1,180),y=this.calculateArc(c,a,2*Math.PI,3*Math.PI/2,-1,180),g=this.calculateArc(f,a,3*Math.PI/2,Math.PI,-1,180),m=p.concat(d,y,g);return i=i.concat(m)}}}),T.RectFlag=T.PathEx.extend({rt:function(){this.bT.sD(this)}}),T.SVG.M({sD:function(t){t&&t._points&&this.iY(t,this.DD(t._points,!0))},DD:function(t,i){var e,s="";return e=1!=t.length?this.calculatePartsRectFlag(t):t,e&&(s=this.pointsToPathEX([e],i)),e&&(s=this.pointsToPathEX([e],i)),s||"M0 0"},calculatePartsRectFlag:function(t){var i=[];if(t.length>1){var e=t[0],s=t[t.length-1],n=e.pQ(),o=new T.Point(s.x,e.y),h=new T.Point(s.x,(e.y+s.y)/2),r=new T.Point(e.x,(e.y+s.y)/2),a=new T.Point(e.x,s.y);return i.push(n),i.push(o),i.push(h),i.push(r),i.push(a),i}}}),T.CurveFlag=T.PathEx.extend({rt:function(){this.bT.dD(this)}}),T.SVG.M({dD:function(t){t&&t._points&&this.iY(t,this.FD(t._points,!0))},FD:function(t,i){var e,s="";return e=1!=t.length?this.calculatePartsCurveFlag(t):t,e&&(s=this.pointsToPathEX([e],i)),s||"M0 0"},calculatePartsCurveFlag:function(t){if(t.length>1){var i=t[0],e=t[t.length-1],s=i,n=new T.Point((e.x-i.x)/4+i.x,(e.y-i.y)/8+i.y),o=new T.Point((i.x+e.x)/2,i.y),h=new T.Point(3*(e.x-i.x)/4+i.x,-(e.y-i.y)/8+i.y),r=new T.Point(e.x,i.y),a=new T.Point(e.x,(i.y+e.y)/2),l=new T.Point(3*(e.x-i.x)/4+i.x,3*(e.y-i.y)/8+i.y),u=new T.Point((i.x+e.x)/2,(i.y+e.y)/2),c=new T.Point((e.x-i.x)/4+i.x,5*(e.y-i.y)/8+i.y),f=new T.Point(i.x,(i.y+e.y)/2),p=new T.Point(i.x,e.y),d=this.calculatePointsFBZN([s,n,o,h,r]),y=this.calculatePointsFBZN([a,l,u,c,f]),g=d.concat(y);return g.push(p),g}}}),T.TriangleFlag=T.PathEx.extend({rt:function(){this.bT.fD(this)}}),T.SVG.M({fD:function(t){t&&t._points&&this.iY(t,this.GD(t._points,!0))},GD:function(t,i){var e,s="";return e=1!=t.length?this.calculatePartsTriangleFlag(t):t,e&&(s=this.pointsToPathEX([e],i)),e&&(s=this.pointsToPathEX([e],i)),s||"M0 0"},calculatePartsTriangleFlag:function(t){var i=[];if(t.length>1){var e=t[0],s=t[t.length-1],n=e.pQ(),o=new T.Point(s.x,(e.y+s.y)/2),h=new T.Point(e.x,(e.y+s.y)/2),r=new T.Point(e.x,s.y);return i.push(n),i.push(o),i.push(h),i.push(r),i}}}),T.DiagonalArrow=T.PathEx.extend({style:{color:"red",weight:5,opacity:.5,fillColor:"#0000FF",fillOpacity:.2,fill:!0},rt:function(){this.bT.gD(this)}}),T.SVG.M({gD:function(t){this.iY(t,this.HD(t._points,!0))},HD:function(t,i){var e="",s=this.calculatePartsDiagonalArrow1(t);return s&&(e=this.pointsToPathEX([s],i)),e.indexOf("NaN")>0&&(e=this.pointsToPathEX([t],i)),e||"M0 0"},calculatePartsDiagonalArrow1:function(t){if(!(null==t||t.length<2||2==t.length&&t[0].equals(t[1])))return this.components=[],2==t.length?this.calculateTwoPointsDiagonalArrow1(t):this.calculateMorePointsDiagonalArrow1(t)},calculateTwoPointsDiagonalArrow1:function(t){var i=this.cloneControlPoints(t),e=i[0],s=i[1],n=Math.sqrt((s.y-e.y)*(s.y-e.y)+(s.x-e.x)*(s.x-e.x)),o=n/6,h=e.x+5*(s.x-e.x)/6,r=e.y+5*(s.y-e.y)/6,a=(new T.Point(h,r),this.calculateVector(new T.Point(s.x-e.x,s.y-e.y),Math.PI/2,o/2)),l=a[0],u=a[1],c=new T.Point(l.x+e.x,l.y+e.y),f=new T.Point(u.x+e.x,u.y+e.y),p=new T.Point(l.x/6+h,l.y/6+r),d=new T.Point(u.x/6+h,u.y/6+r),y=new T.Point(2*p.x-d.x,2*p.y-d.y),g=new T.Point(2*d.x-p.x,2*d.y-p.y);return[c,p,y,s,g,d,f]},calculateMorePointsDiagonalArrow1:function(t){for(var i=this.cloneControlPoints(t),e=0,s=0,n=0;n<i.length-1;n++){var o=i[n],h=i[n+1];e+=Math.sqrt((h.y-o.y)*(h.y-o.y)+(h.x-o.x)*(h.x-o.x))}s=e/6;for(var r=Math.atan(s/(2*e)),a=[],l=[],u=new T.Point,c=new T.Point,f=0;f<i.length-2;f++){var p=i[f],d=i[f+1],y=i[f+2],g=new T.Point(d.x-p.x,d.y-p.y),m=new T.Point(y.x-d.x,y.y-d.y),v=new T.Point,w=new T.Point;if(0==f){var E=this.calculateVector(g,Math.PI/2,s/2),x=E[0],P=E[1];u=v=new T.Point(x.x+p.x,x.y+p.y),c=w=new T.Point(P.x+p.x,P.y+p.y)}else v=a[a.length-1],w=l[l.length-1];var O=this.calculateVector(g,r,1),L=O[1],S=O[0],Q=this.calculateAngularBisector(new T.Point(-g.x,-g.y),m),A=this.calculateIntersection(L,Q,v,d),C=this.calculateIntersection(S,Q,w,d);a.push(new T.Point((v.x+A.x)/2,(v.y+A.y)/2)),a.push(A),l.push(new T.Point((w.x+C.x)/2,(w.y+C.y)/2)),l.push(C)}var M=i[i.length-2],b=i[i.length-1],I=Math.sqrt((M.x-b.x)*(M.x-b.x)+(M.y-b.y)*(M.y-b.y)),q=new T.Point,_=new T.Point,j=[],R=new T.Point,Y=new T.Point,W=new T.Point,D=new T.Point,k=a[a.length-1],U=l[l.length-1],z=new T.Point,B=new T.Point;if(I<=s)j=this.calculateVector(new T.Point(b.x-M.x,b.y-M.y),Math.PI/2,s/2),z=j[0],B=j[1],q=new T.Point(z.x/6+M.x,z.y/6+M.y),_=new T.Point(B.x/6+M.x,B.y/6+M.y),W=new T.Point(2*q.x-_.x,2*q.y-_.y),D=new T.Point(2*_.x-q.x,2*_.y-q.y),R=new T.Point((k.x+q.x)/2,(k.y+q.y)/2),Y=new T.Point((U.x+_.x)/2,(U.y+_.y)/2),a.push(R),l.push(Y);else{var N=new T.Point(b.x-M.x,b.y-M.y),Z=Math.sqrt(N.x*N.x+N.y*N.y),F=new T.Point(b.x-N.x*s/Z,b.y-N.y*s/Z);j=this.calculateVector(new T.Point(b.x-F.x,b.y-F.y),Math.PI/2,s/2),z=j[0],B=j[1],q=new T.Point(z.x/6+F.x,z.y/6+F.y),_=new T.Point(B.x/6+F.x,B.y/6+F.y),W=new T.Point(2*q.x-_.x,2*q.y-_.y),D=new T.Point(2*_.x-q.x,2*_.y-q.y),R=new T.Point((k.x+q.x)/2,(k.y+q.y)/2),Y=new T.Point((U.x+_.x)/2,(U.y+_.y)/2),a.push(R),l.push(Y)}var G=this.calculatePointsFBZ2(a),H=this.calculatePointsFBZ2(l),V=[u];V=V.concat(G),V.push(q),V.push(W),V.push(b),V.push(D),V.push(_);for(var K=H.length-1;K>=0;K--)V.push(H[K]);return V.push(c),V}}),T.StraightArrow=T.PathEx.extend({style:{color:"red",weight:5,opacity:.5,fillColor:"#0000FF",fillOpacity:.2,fill:!0},rt:function(){this.bT.hD(this)}}),T.SVG.M({hD:function(t){this.iY(t,this.JD(t._points,!0))},JD:function(t,i){var e="",s=this.calculatePartsStraightArrow(t);return s&&(e=this.pointsToPathEX([s],i)),e||"M0 0"},calculatePartsStraightArrow:function(t){if(!(null==t||t.length<2||2==t.length&&t[0].equals(t[1])))return this.components=[],2==t.length?this.calculateTwoPointsStraightArrow(t):this.calculateMorePointsStraightArrow(t)},calculateTwoPointsStraightArrow:function(t){var i=this.cloneControlPoints(t),e=i[0],s=i[1],n=Math.sqrt((s.y-e.y)*(s.y-e.y)+(s.x-e.x)*(s.x-e.x)),o=n/6,h=e.x+5*(s.x-e.x)/6,r=e.y+5*(s.y-e.y)/6,a=this.calculateVector(new T.Point(s.x-e.x,s.y-e.y),Math.PI/2,o/2),l=a[0],u=a[1],c=new T.Point(e.x+l.x,e.y+l.y),f=new T.Point(h+c.x-e.x,r+c.y-e.y),p=new T.Point(2*f.x-h,2*f.y-r),d=new T.Point(s.x,s.y),y=new T.Point(e.x+u.x,e.y+u.y),g=new T.Point(h+y.x-e.x,r+y.y-e.y),m=new T.Point(2*g.x-h,2*g.y-r);return[c,f,p,d,m,g,y]},calculateMorePointsStraightArrow:function(t){for(var i=this.cloneControlPoints(t),e=0,s=0,n=0;n<i.length-1;n++){var o=i[n],h=i[n+1];e+=Math.sqrt((h.y-o.y)*(h.y-o.y)+(h.x-o.x)*(h.x-o.x))}s=e/6;for(var r=[],a=[],l=T.Point(),u=T.Point(),c=0;c<i.length-2;c++){var f,p,d=i[c],y=i[c+1],g=i[c+2],m=new T.Point(y.x-d.x,y.y-d.y),v=new T.Point(g.x-y.x,g.y-y.y),w=this.calculateVector(m,Math.PI/2,s/2),E=w[0],x=w[1],P=this.calculateVector(v,Math.PI/2,s/2),O=P[0],L=P[1],S=new T.Point(d.x+E.x,d.y+E.y),Q=new T.Point(d.x+x.x,d.y+x.y),A=new T.Point(y.x+O.x,y.y+O.y),C=new T.Point(y.x+L.x,y.y+L.y),M=this.calculateIntersection(m,v,S,A),b=this.calculateIntersection(m,v,Q,C);if(0==c)l=S,u=Q,f=new T.Point((l.x+M.x)/2,(l.y+M.y)/2),p=new T.Point((u.x+b.x)/2,(u.y+b.y)/2),r.push(f),a.push(p);else{var I=r[r.length-1],q=a[a.length-1];f=new T.Point((I.x+M.x)/2,(I.y+M.y)/2),p=new T.Point((q.x+b.x)/2,(q.y+b.y)/2),r.push(f),a.push(p)}r.push(M),a.push(b)}var _,j,R=i[i.length-2],Y=i[i.length-1],W=new T.Point(Y.x-R.x,Y.y-R.y),D=Math.sqrt(W.x*W.x+W.y*W.y),k=[],U=T.Point(),z=T.Point(),B=T.Point(),N=T.Point(),Z=T.Point(),F=T.Point(),G=r[r.length-1],H=a[a.length-1];if(D<=s)k=this.calculateVector(W,Math.PI/2,s/2),U=k[0],z=k[1],_=new T.Point(R.x+U.x,R.y+U.y),j=new T.Point(R.x+z.x,R.y+z.y),B=new T.Point((G.x+_.x)/2,(G.y+_.y)/2),N=new T.Point((H.x+j.x)/2,(H.y+j.y)/2),r.push(B),a.push(N),Z=new T.Point(2*_.x-R.x,2*_.y-R.y),F=new T.Point(2*j.x-R.x,2*j.y-R.y);else{var V=new T.Point(Y.x-R.x,Y.y-R.y),K=Math.sqrt(V.x*V.x+V.y*V.y),J=new T.Point(Y.x-V.x*s/K,Y.y-V.y*s/K);k=this.calculateVector(W,Math.PI/2,s/2),U=k[0],z=k[1],_=new T.Point(J.x+U.x,J.y+U.y),j=new T.Point(J.x+z.x,J.y+z.y),B=new T.Point((G.x+_.x)/2,(G.y+_.y)/2),N=new T.Point((H.x+j.x)/2,(H.y+j.y)/2),r.push(B),a.push(N),Z=new T.Point(2*_.x-J.x,2*_.y-J.y),F=new T.Point(2*j.x-J.x,2*j.y-J.y)}var X=this.calculatePointsFBZ2(r),$=this.calculatePointsFBZ2(a),tt=[l];return tt=tt.concat(X),tt.push(_),tt.push(Z),tt.push(Y),tt.push(F),tt.push(j),tt=tt.concat($.reverse()),tt.push(u),tt}}),T.BezierCurve2=T.Curve.extend({initialize:function(t,i){this.plnglats=t,T.setOptions(this,i);var e=this.jD(t);T.Curve.prototype.initialize.call(this,e,i)},setLngLats:function(t){this.plnglats=t;var i=this.jD(t);this.iY(i),this.redraw()},getLngLats:function(){return this.plnglats},jD:function(t){for(var i=[],e=[],s=0;s<t.length;s++)t[s]instanceof T.dq?e.push([t[s].getLat(),t[s].getLng()]):e.push(t[s]);return 1==e.length?i=["M",e[0],T.oQ.MT?"z":"x"]:2==t.length?i=["M",e[0],"L",e[1],T.oQ.MT?"z":"x"]:3==t.length&&(i=["M",e[0],"Q",e[1],e[2]]),i}}),T.BezierCurve3=T.BezierCurve2.extend({jD:function(t){for(var i=[],e=this.plnglats=[],s=0;s<t.length;s++)t[s]instanceof T.dq?e.push([t[s].getLat(),t[s].getLng()]):e.push(t[s]);return 1==e.length?i=["M",e[0],T.oQ.MT?"z":"x"]:2==t.length?i=["M",e[0],"L",e[1],T.oQ.MT?"z":"x"]:3==t.length?i=["M",e[0],"Q",e[1],e[2]]:4==t.length&&(i=["M",t[0],"C",t[1],t[2],t[3]]),i}}),T.BezierCurveArrow=T.PathEx.extend({rt:function(){this.bT.KD(this)}}),T.SVG.M({KD:function(t){this.iY(t,this.kD(t._points))},kD:function(t){var i="",e=this.calculateBezierCurveArrow(t);return e&&(i=this.pointsToPathEX([e])),i||"M0 0"},calculateBezierCurveArrow:function(t){var i=this.cloneControlPoints(t),e=[];if(2==i.length){var s=i[0],n=i[1];e.push(s),e.push(n);var o=this.calculateArrowLines(s,n,10);e=e.concat(o)}else if(3==i.length){var s=i[1],n=i[2],h=this.calculatePointsFBZ2(i),o=this.calculateArrowLines(s,n,10);e=e.concat(h),e=e.concat(o)}else if(4==i.length){var s=i[2],n=i[3],r=this.createBezier3(i),o=this.calculateArrowLines(s,n,10);e=e.concat(r),e=e.concat(o)}else if(i.length>4){var s=i[i.length-2],n=i[i.length-1],a=this.calculatePointsFBZN(i),o=this.calculateArrowLines(s,n,10);e=e.concat(a),e=e.concat(o)}return e}}),T.BezierCurveN=T.PathEx.extend({rt:function(){this.bT.TD(this)}}),T.SVG.M({TD:function(t){this.iY(t,this.LD(t._points))},LD:function(t){var i="",e=this.calculatePointsFBZN(t);return i=this.pointsToPathEX([e]),i||"M0 0"},calculatePointsFBZN:function(t,i){i||(i=8*t.length);var e=[],s=.05;i>0&&(s=1/i);for(var n=0;n<=1;){for(var o=0,h=0,r=t.length,a=0;a<t.length;a++){var l=this.BEZ(r-1,a,n);o+=t[a].x*l,h+=t[a].y*l}var u=new T.Point(o,h);e.push(u),n+=s}var c=e[e.length-1],f=t[t.length-1];return c.equals(f)||e.push(f.pQ()),e},BEZ:function(t,i,e){return this.combSort(t,i)*Math.pow(e,i)*Math.pow(1-e,t-i)},combSort:function(t,i){var e=this.factorial(t),s=this.factorial(i)*this.factorial(t-i);return e/s},factorial:function(t){for(var i=1,e=1;e<=t;e++)i*=e;return i}}),T.CardinalCurve=T.PathEx.extend({rt:function(){this.bT.lD(this)}}),T.SVG.M({lD:function(t){!t||!t._points||t._points.length<2||this.iY(t,this.ZD(t._points))},ZD:function(t,i){var e="",s=this.calculatePartsCardinalCurve(t);return s&&(e=this.pointsToPathEX([s],i)),e.indexOf("NaN")>0&&(e=this.pointsToPathEX([t],i)),e||"M0 0"},calculateAngle:function(t,i){var e=Math.atan2(t.y-i.y,t.x-i.x);return e<0&&(e+=2*Math.PI),e},calculatePartsCardinalCurve:function(t){var i=this.cloneControlPoints(t);if(i.length<3)return i;if(i.length>2){var e=this.calculateCardinalPoints(i);this.part||(this.part=10*e.length);var s=this.calculatePointsFBZ3(e);return s}}}),T.CardinalCurveArrow=T.PathEx.extend({rt:function(){this.bT.CD(this)}}),T.SVG.M({CD:function(t){this.iY(t,this.VD(t._points))},VD:function(t){var i="",e=this.calculateCardinalCurveArrow(t);return e&&(i=this.pointsToPathEX([e])),i||"M0 0"},calculateCardinalCurveArrow:function(t){var i=this.cloneControlPoints(t),e=[];if(2==i.length){var s=i[0],n=i[1],o=[s,n],h=this.calculateArrowLines(s,n,10);e=e.concat(o),e=e.concat(h)}else if(i.length>2){var r=this.calculateCardinalPoints(i),a=this.calculatePointsFBZN(r),s=r[r.length-2],n=r[r.length-1],h=this.calculateArrowLines(s,n,2);e=e.concat(a),e=e.concat(h)}return e}}),T.DoubleArrow=T.PathEx.extend({style:{color:"#0000FF",weight:5,opacity:.5,fillColor:"#0000FF",fillOpacity:.2,fill:!0},rt:function(){this.bT._updateDoubleArrow(this)}}),T.SVG.M({_updateDoubleArrow:function(t){this.iY(t,this.cD(t._points,!0))},cD:function(t,i){var e="",s=this.calculatePartsDoubleArrow1(t);return s&&(e=this.pointsToPathEX([s],i)),e.indexOf("NaN")>0&&(e=this.pointsToPathEX([t],i)),e||"M0 0"},calculatePartsDoubleArrow1:function(t){var i=this.cloneControlPoints(t);if(null==t||t.length<3)return 2==i.length?i:void 0;if(3==i.length){var e=i[1].x-i[0].x,s=i[1].y-i[0].y,n=new T.Point(i[2].x-e,i[2].y-s);i.push(n)}var o=i[0],h=i[1],r=i[2],a=i[3],l=new T.Point((5*(o.x+h.x)+(r.x+a.x))/12,(5*(o.y+h.y)+(r.y+a.y))/12),u=this.calculateIntersectionFromTwoCorner(o,a,Math.PI/8,Math.PI/6)[0],c=this.calculateIntersectionFromTwoCorner(l,a,Math.PI/8,Math.PI/16)[0],f=this.calculateIntersectionFromTwoCorner(h,r,Math.PI/8,Math.PI/6)[1],p=this.calculateIntersectionFromTwoCorner(l,r,Math.PI/8,Math.PI/16)[1],d=new T.Point(u.x-a.x,u.y-a.y),y=Math.sqrt(d.x*d.x+d.y*d.y),g=new T.Point(d.x/y,d.y/y),m=new T.Point(c.x-a.x,c.y-a.y),v=Math.sqrt(m.x*m.x+m.y*m.y),w=new T.Point(m.x/v,m.y/v),E=.25,x=y<v?y*E:v*E,P=new T.Point(g.x*x+a.x,g.y*x+a.y),O=new T.Point(w.x*x+a.x,w.y*x+a.y),L=new T.Point(1.5*P.x-.5*O.x,1.5*P.y-.5*O.y),S=new T.Point(1.5*O.x-.5*P.x,1.5*O.y-.5*P.y),Q=new T.Point(f.x-r.x,f.y-r.y),A=Math.sqrt(Q.x*Q.x+Q.y*Q.y),C=new T.Point(Q.x/A,Q.y/A),M=new T.Point(p.x-r.x,p.y-r.y),b=Math.sqrt(M.x*M.x+M.y*M.y),I=new T.Point(M.x/b,M.y/b),q=A<b?A*E:b*E,_=new T.Point(C.x*q+r.x,C.y*q+r.y),j=new T.Point(I.x*q+r.x,I.y*q+r.y),R=new T.Point(1.5*_.x-.5*j.x,1.5*_.y-.5*j.y),Y=new T.Point(1.5*j.x-.5*_.x,1.5*j.y-.5*_.y),W=this.calculatePointsFBZ2([o,u,P]),D=new T.Point(r.x-a.x,r.y-a.y),k=new T.Point(l.x-a.x,l.y-a.y),U=Math.sqrt(k.x*k.x+k.y*k.y),z=new T.Point(l.x-r.x,l.y-r.y),B=Math.sqrt(z.x*z.x+z.y*z.y),N=.4,Z=new T.Point(D.x*N,D.y*N),F=new T.Point(Z.x*U/(U+B),Z.y*U/(U+B)),G=new T.Point(Z.x*B/(U+B),Z.y*B/(U+B)),H=new T.Point(l.x-F.x,l.y-F.y),V=new T.Point(l.x+G.x,l.y+G.y),K=[O,c,H,l,V,p,j],J=this.createBezier1(K,0,20),X=this.calculatePointsFBZ2([_,f,h]),$=W;return $.push(L),$.push(a),$.push(S),$=$.concat(J),$.push(Y),$.push(r),$.push(R),$=$.concat(X)}}),T.DoveTailDiagonalArrow=T.PathEx.extend({rt:function(){this.bT.BD(this)}}),T.SVG.M({BD:function(t){this.iY(t,this.vD(t._points,!0))},vD:function(t,i){var e="",s=this.calculatePartsDoveTailDiagonalArrow(t);return s&&(e=this.pointsToPathEX([s],i)),e.indexOf("NaN")>0&&(e=this.pointsToPathEX([t],i)),e||"M0 0"},calculatePartsDoveTailDiagonalArrow:function(t){if(!(null==t||t.length<2||2==t.length&&t[0].equals(t[1])))return 2==t.length?this.calculateTwoPointsDoveTailDiagonalArrow(t):this.calculateMorePointsDoveTailDiagonalArrow(t)},calculateTwoPointsDoveTailDiagonalArrow:function(t){var i=this.cloneControlPoints(t),e=i[0],s=i[1],n=Math.sqrt((s.y-e.y)*(s.y-e.y)+(s.x-e.x)*(s.x-e.x)),o=n/6,h=e.x+5*(s.x-e.x)/6,r=e.y+5*(s.y-e.y)/6,a=(new T.Point(h,r),this.calculateVector(new T.Point(s.x-e.x,s.y-e.y),Math.PI/2,o/2)),l=a[0],u=a[1],c=new T.Point(l.x+e.x,l.y+e.y),f=new T.Point(u.x+e.x,u.y+e.y),p=new T.Point((s.x-e.x)/5+e.x,(s.y-e.y)/5+e.y),d=new T.Point(l.x/6+h,l.y/6+r),y=new T.Point(u.x/6+h,u.y/6+r),g=new T.Point(2*d.x-y.x,2*d.y-y.y),m=new T.Point(2*y.x-d.x,2*y.y-d.y);return[p,c,d,g,s,m,y,f]},calculateMorePointsDoveTailDiagonalArrow:function(t){for(var i,e=this.cloneControlPoints(t),s=0,n=0,o=0;o<e.length-1;o++){var h=e[o],r=e[o+1];s+=Math.sqrt((r.y-h.y)*(r.y-h.y)+(r.x-h.x)*(r.x-h.x)),0==o&&(i=new T.Point((r.x-h.x)/5+h.x,(r.y-h.y)/5+h.y))}n=s/6;for(var a=Math.atan(n/(2*s)),l=[],u=[],c=new T.Point,f=new T.Point,p=0;p<e.length-2;p++){var d=e[p],y=e[p+1],g=e[p+2],m=new T.Point(y.x-d.x,y.y-d.y),v=new T.Point(g.x-y.x,g.y-y.y),w=new T.Point,E=new T.Point;if(0==p){var x=this.calculateVector(m,Math.PI/2,n/2),P=x[0],O=x[1];c=w=new T.Point(P.x+d.x,P.y+d.y),f=E=new T.Point(O.x+d.x,O.y+d.y)}else w=l[l.length-1],E=u[u.length-1];var L=this.calculateVector(m,a,1),S=L[1],Q=L[0],A=this.calculateAngularBisector(new T.Point(-m.x,-m.y),v),C=this.calculateIntersection(S,A,w,y),M=this.calculateIntersection(Q,A,E,y);l.push(new T.Point((w.x+C.x)/2,(w.y+C.y)/2)),l.push(C),u.push(new T.Point((E.x+M.x)/2,(E.y+M.y)/2)),u.push(M)}var b=e[e.length-2],I=e[e.length-1],q=Math.sqrt((b.x-I.x)*(b.x-I.x)+(b.y-I.y)*(b.y-I.y)),_=new T.Point,j=new T.Point,R=[],Y=new T.Point,W=new T.Point,D=new T.Point,k=new T.Point,U=l[l.length-1],z=u[u.length-1],B=new T.Point,N=new T.Point;if(q<=n)R=this.calculateVector(new T.Point(I.x-b.x,I.y-b.y),Math.PI/2,n/2),B=R[0],N=R[1],_=new T.Point(B.x/6+b.x,B.y/6+b.y),j=new T.Point(N.x/6+b.x,N.y/6+b.y),D=new T.Point(2*_.x-j.x,2*_.y-j.y),k=new T.Point(2*j.x-_.x,2*j.y-_.y),Y=new T.Point((U.x+_.x)/2,(U.y+_.y)/2),W=new T.Point((z.x+j.x)/2,(z.y+j.y)/2),l.push(Y),u.push(W);else{var Z=new T.Point(I.x-b.x,I.y-b.y),F=Math.sqrt(Z.x*Z.x+Z.y*Z.y),G=new T.Point(I.x-Z.x*n/F,I.y-Z.y*n/F);R=this.calculateVector(new T.Point(I.x-G.x,I.y-G.y),Math.PI/2,n/2),B=R[0],N=R[1],_=new T.Point(B.x/6+G.x,B.y/6+G.y),j=new T.Point(N.x/6+G.x,N.y/6+G.y),D=new T.Point(2*_.x-j.x,2*_.y-j.y),k=new T.Point(2*j.x-_.x,2*j.y-_.y),Y=new T.Point((U.x+_.x)/2,(U.y+_.y)/2),W=new T.Point((z.x+j.x)/2,(z.y+j.y)/2),l.push(Y),u.push(W)}var H=this.calculatePointsFBZ2(l),V=this.calculatePointsFBZ2(u),K=[c];K=K.concat(H),K.push(_),K.push(D),K.push(I),K.push(k),K.push(j);for(var J=V.length-1;J>=0;J--)K.push(V[J]);return K.push(f),K.push(i),K}}),T.DoveTailStraightArrow=T.PathEx.extend({style:{color:"red",weight:5,opacity:.5,fillColor:"#0000FF",fillOpacity:.2,fill:!0},rt:function(){this.bT.ND(this)}}),T.SVG.M({ND:function(t){this.iY(t,this.bD(t._points,!0))},bD:function(t,i){var e="",s=this.calculatePartsDoveTailStraightArrow(t);return s&&(e=this.pointsToPathEX([s],i)),e.indexOf("NaN")>0&&(e=this.pointsToPathEX([t],i)),e||"M0 0"},calculatePartsDoveTailStraightArrow:function(t){if(!(null==t||t.length<2||2==t.length&&t[0].equals(t[1])))return this.components=[],2==t.length?this.calculateTwoPointsDoveTailStraightArrow(t):this.calculateMorePointsDoveTailStraightArrow(t)},calculateTwoPointsDoveTailStraightArrow:function(t){var i=this.cloneControlPoints(t),e=i[0],s=i[1],n=Math.sqrt((s.y-e.y)*(s.y-e.y)+(s.x-e.x)*(s.x-e.x)),o=n/6,h=e.x+5*(s.x-e.x)/6,r=e.y+5*(s.y-e.y)/6,a=this.calculateVector(new T.Point(s.x-e.x,s.y-e.y),Math.PI/2,o/2),l=a[0],u=a[1],c=new T.Point(e.x+l.x,e.y+l.y),f=new T.Point(h+c.x-e.x,r+c.y-e.y),p=new T.Point(2*f.x-h,2*f.y-r),d=new T.Point(s.x,s.y),y=new T.Point(e.x+u.x,e.y+u.y),g=new T.Point(h+y.x-e.x,r+y.y-e.y),m=new T.Point(2*g.x-h,2*g.y-r),v=new T.Point((s.x-e.x)/5+e.x,(s.y-e.y)/5+e.y);return[v,c,f,p,d,m,g,y]},calculateMorePointsDoveTailStraightArrow:function(t){for(var i,e=this.cloneControlPoints(t),s=0,n=0,o=0;o<e.length-1;o++){var h=e[o],r=e[o+1];s+=Math.sqrt((r.y-h.y)*(r.y-h.y)+(r.x-h.x)*(r.x-h.x)),0==o&&(i=new T.Point((r.x-h.x)/5+h.x,(r.y-h.y)/5+h.y))}n=s/6;for(var a=[],l=[],u=T.Point(),c=T.Point(),f=0;f<e.length-2;f++){var p,d,y=e[f],g=e[f+1],m=e[f+2],v=new T.Point(g.x-y.x,g.y-y.y),w=new T.Point(m.x-g.x,m.y-g.y),E=this.calculateVector(v,Math.PI/2,n/2),x=E[0],P=E[1],O=this.calculateVector(w,Math.PI/2,n/2),L=O[0],S=O[1],Q=new T.Point(y.x+x.x,y.y+x.y),A=new T.Point(y.x+P.x,y.y+P.y),C=new T.Point(g.x+L.x,g.y+L.y),M=new T.Point(g.x+S.x,g.y+S.y),b=this.calculateIntersection(v,w,Q,C),I=this.calculateIntersection(v,w,A,M);if(0==f)u=Q,c=A,p=new T.Point((u.x+b.x)/2,(u.y+b.y)/2),d=new T.Point((c.x+I.x)/2,(c.y+I.y)/2),a.push(p),l.push(d);else{var q=a[a.length-1],_=l[l.length-1];p=new T.Point((q.x+b.x)/2,(q.y+b.y)/2),d=new T.Point((_.x+I.x)/2,(_.y+I.y)/2),a.push(p),l.push(d)}a.push(b),l.push(I)}var j,R,Y=e[e.length-2],W=e[e.length-1],D=new T.Point(W.x-Y.x,W.y-Y.y),k=Math.sqrt(D.x*D.x+D.y*D.y),U=[],z=T.Point(),B=T.Point(),N=T.Point(),Z=T.Point(),F=T.Point(),G=T.Point(),H=a[a.length-1],V=l[l.length-1];if(k<=n)U=this.calculateVector(D,Math.PI/2,n/2),z=U[0],B=U[1],j=new T.Point(Y.x+z.x,Y.y+z.y),R=new T.Point(Y.x+B.x,Y.y+B.y),N=new T.Point((H.x+j.x)/2,(H.y+j.y)/2),Z=new T.Point((V.x+R.x)/2,(V.y+R.y)/2),a.push(N),l.push(Z),F=new T.Point(2*j.x-Y.x,2*j.y-Y.y),G=new T.Point(2*R.x-Y.x,2*R.y-Y.y);else{var K=new T.Point(W.x-Y.x,W.y-Y.y),J=Math.sqrt(K.x*K.x+K.y*K.y),X=new T.Point(W.x-K.x*n/J,W.y-K.y*n/J);U=this.calculateVector(D,Math.PI/2,n/2),z=U[0],B=U[1],j=new T.Point(X.x+z.x,X.y+z.y),R=new T.Point(X.x+B.x,X.y+B.y),N=new T.Point((H.x+j.x)/2,(H.y+j.y)/2),Z=new T.Point((V.x+R.x)/2,(V.y+R.y)/2),a.push(N),l.push(Z),F=new T.Point(2*j.x-X.x,2*j.y-X.y),G=new T.Point(2*R.x-X.x,2*R.y-X.y)}var $=this.calculatePointsFBZ2(a),tt=this.calculatePointsFBZ2(l),it=[u];return it=it.concat($),it.push(j),it.push(F),it.push(W),it.push(G),it.push(R),it=it.concat(tt.reverse()),it.push(c),it.push(i),it}}),T.ParallelSearch=T.PathEx.extend({rt:function(){this.bT.MD(this)}}),T.SVG.M({MD:function(t){!t||!t._points||t._points.length<2||this.iY(t,this.nD(t._points))},nD:function(t,i){var e="",s=this.calculatePartsParallelSearch(t);return s&&(e=this.pointsToPathEX([s],i)),e.indexOf("NaN")>0&&(e=this.pointsToPathEX([t],i)),e||"M0 0"},calculatePartsParallelSearch:function(t){var i=this.cloneControlPoints(t);if(i.length>1){var e,s=i[0],n=i[1];if(0==s.distanceTo(n))return i;e=this.toVector(s,n);var o=this.calculateVector(e)[0],h=!1,r=[];r.push(s);var a=[];a.push(s);for(var l=1;l<i.length;l++){h=l%2!==0;var u=i[l];if(h){var c=r[l-1].pQ(),f=this.calculateIntersection(o,e,u,c),T=this.calculateArrowLines(c,f,15);T.push(f),a=a.concat(T),r.push(f)}else{var c=r[l-1],f=this.calculateIntersection(e,o,u,c),T=this.calculateArrowLines(c,f,15);T.push(f),a=a.concat(T),r.push(f)}}return a}}}),T.PolylineArrow=T.PathEx.extend({rt:function(){this.bT._D(this)}}),T.SVG.M({_D:function(t){this.iY(t,this.mD(t._points))},mD:function(t){var i="",e=this.calculatePolylineArrow(t);return e&&(i=this.pointsToPathEX([e])),i||"M0 0"},calculatePolylineArrow:function(t){var i=this.cloneControlPoints(t);if(this.components=[],i.length>1){var e=i[i.length-2],s=i[i.length-1],n=this.calculateArrowLines(e,s,10);i=i.concat(n)}return i}}),T.SectorSearch=T.PathEx.extend({rt:function(){this.bT.Qd(this)}}),T.SVG.M({Qd:function(t){t&&t._points&&this.iY(t,this.qd(t._points,!0))},qd:function(t,i){var e="",s=this.calculatePartsSectorSearch(t);return s&&(e=this.pointsToPathEX([s],i)),e.indexOf("NaN")>0&&(e=this.pointsToPathEX([t],i)),e||"M0 0"},calculatePartsSectorSearch:function(t){var i=this.cloneControlPoints(t);if(this.components=[],i.length>1){if(0==i[0].distanceTo(i[1]))return i;var e=[],s=i[0],n=2*s.x,o=2*s.y,h=i[i.length-1],r=s.distanceTo(h),a=this.toVector(s,h),l=this.calculateVector(a,4*Math.PI/3,r),u=l[0],c=new T.Point(u.x+s.x,u.y+s.y),f=new T.Point(-c.x+n,-c.y+o),p=l[1],d=new T.Point(p.x+s.x,p.y+s.y),y=new T.Point(-d.x+n,-d.y+o),g=new T.Point(-h.x+n,-h.y+o),m=this.calculateArrowLines(s,h),v=this.calculateArrowLines(h,c),w=this.calculateArrowLines(c,f),E=this.calculateArrowLines(f,d),x=this.calculateArrowLines(d,y),P=this.calculateArrowLines(y,g),O=this.calculateArrowLines(g,s);return e.push(s),e=e.concat(m),e.push(h),e=e.concat(v),e.push(c),e=e.concat(w),e.push(f),e=e.concat(E),e.push(d),e=e.concat(x),e.push(y),e=e.concat(P),e.push(g),e=e.concat(O),e.push(s),e}return i}}),T.Cmd2BaseTool=T.Tool.extend({options:{style:{color:"red",weight:5,opacity:.8}},initialize:function(t,i){T.setOptions(this,i),this.jE=t,this.touch=T.oQ.touch&&T.oQ.mobile,this.mousemove=this.touch?"touchmove":"mousemove",this.mouseFire=this.touch?"touchend":"click",this.layers=i&&i.layers?i.layers:new T.LayerGroup,this.jE.addLayer(this.layers),this.lnglats=[]},enable:function(){this.eU||(this.eU=!0,this.oU())},disable:function(){this.eU&&(this.eU=!1,this.Ar())},open:function(){this.enable()},close:function(){this.disable()},getLayers:function(){return this.layers.getLayers()},clear:function(){this.layers.clearLayers()},oU:function(){this.jE&&(this.Yt=null,this.jE.on(this.mouseFire,this.pY,this),this.jE.on(this.mousemove,this.Wd,this))},Ar:function(){this.jE&&(this.jE.off(this.mouseFire,this.pY,this),this.jE.off(this.mousemove,this.Wd,this),this.jE.getContainer().style.cursor="",this.Yt&&(this.jE.removeLayer(this.Yt),delete this.Yt,this.Yt=null))},pY:function(t){var t={currentayer:this.Yt,allLayers:this.getLayers()};this.wQ("click",t)},Wd:function(t){var t={currentayer:this.Yt,allLayers:this.getLayers()};this.wQ("move",t)}}),T.Cmd3BaseTool=T.Tool.extend({options:{style:{color:"red",weight:5,opacity:.8}},initialize:function(t,i){T.setOptions(this,i),this.jE=t,this.touch=T.oQ.touch&&T.oQ.mobile,this.mousemove=this.touch?"touchmove":"mousemove",this.mouseFire=this.touch?"touchend":"click",this.layers=i&&i.layers?i.layers:new T.LayerGroup,this.jE.addLayer(this.layers),this.lnglats=[]},enable:function(){this.eU||(this.eU=!0,this.oU())},disable:function(){this.eU&&(this.eU=!1,this.Ar())},open:function(){this.enable()},close:function(){this.disable()},getLayers:function(){return this.layers.getLayers()},clear:function(){this.layers.clearLayers()},oU:function(){this.jE&&(this.wd(),this.jE.on(this.mousemove,this.Wd,this),this.jE.on("click",this.Ed,this),this.jE.on("dblclick",this.ed,this),this.jE.on("longpress",this.Rd,this))},Ar:function(){this.jE&&(this.rd(),this.jE.off(this.mousemove,this.Wd,this),this.jE.off("click",this.Ed,this),this.jE.off("dblclick",this.ed,this),this.jE.off("longpress",this.ed,this),this.jE.getContainer().style.cursor="",this.Yt&&(this.jE.removeLayer(this.Yt),delete this.Yt,this.Yt=null))},wd:function(){this.isdb=this.jE.isDoubleClickZoom(),this.jE.disableDoubleClickZoom()},rd:function(){this.isdb?this.jE.enableDoubleClickZoom():this.jE.disableDoubleClickZoom()},Ed:function(t){clearTimeout(this.TimeFn);var i=this;this.TimeFn=setTimeout(function(){i.pY(t)},300)},ed:function(t){(!T.oQ.MT||t.originalEvent instanceof MouseEvent)&&(clearTimeout(this.TimeFn),this.Rd(t))},Rd:function(t){var t={currentLnglats:this.Yt.getLngLats(),currentLayer:this.Yt,allLayers:this.getLayers()};this.wQ("dbclick",t),this.jE.getContainer().style.cursor="",this.Yt.getElement().style.cursor=""},pY:function(t){var t={currentLnglats:this.Yt.getLngLats(),currentLayer:this.Yt,allLayers:this.getLayers()};this.wQ("click",t),this.jE.getContainer().style.cursor="crosshair",this.Yt.getElement().style.cursor="crosshair"},Wd:function(t){var t={currentLnglats:this.Yt.getLngLats(),currentLayer:this.Yt,allLayers:this.getLayers()};this.wQ("move",t)}}),T.ArcTool=T.Cmd2BaseTool.extend({options:{style:{color:"blue",weight:5,opacity:.5,fillColor:"#0000FF",fillOpacity:.2,fill:!0}},initialize:function(t,i){T.setOptions(this,i);var e=!this.options.style.fill;e&&(this.options.style={color:this.options.style.color,weight:this.options.style.weight,opacity:this.options.style.opacity,lineStyle:this.options.style.lineStyle}),this.Arc=e?T.Arc:T.Arch,T.Cmd2BaseTool.prototype.initialize.call(this,t,i)},pY:function(t){if((!this.lnglats||this.lnglats.length>2)&&(this.lnglats=[]),this.lnglats.push(t.lnglat),this.Yt?this.Yt.setLngLats(this.lnglats):(this.Yt=new this.Arc(this.lnglats,this.options.style),map.addLayer(this.Yt),this.jE.getContainer().style.cursor="crosshair",this.Yt.getElement().style.cursor="crosshair"),T.Cmd2BaseTool.prototype.pY.call(this,t),3==this.lnglats.length){map.removeLayer(this.Yt);var i=new this.Arc(this.lnglats,this.options.style);this.layers.addLayer(i),this.jE.getContainer().style.cursor="",this.Yt.getElement().style.cursor="",delete this.Yt,this.Yt=null}},Wd:function(t){if(0!=this.lnglats.length&&this.Yt){var i=[];i=i.concat(this.lnglats),i.push([t.lnglat.lat,t.lnglat.lng]),this.Yt.setLngLats(i),T.Cmd2BaseTool.prototype.Wd.call(this,t)}}}),T.CloseCurveTool=T.Cmd3BaseTool.extend({options:{style:{color:"red",weight:5,opacity:.5,fillColor:"red",fillOpacity:.2,fill:!0}},pY:function(t){this.lnglats||(this.lnglats=[]),this.lnglats.push([t.lnglat.lat,t.lnglat.lng]),this.Yt?this.Yt.setLngLats(this.lnglats):(this.Yt=new T.CloseCurve(this.lnglats,this.options.style),map.addLayer(this.Yt)),T.Cmd3BaseTool.prototype.pY.call(this,t)},Wd:function(t){if(this.lnglats&&0!=this.lnglats.length&&this.Yt){var i=[];i=i.concat(this.lnglats),i.push([t.lnglat.lat,t.lnglat.lng]),this.Yt.setLngLats(i),T.Cmd3BaseTool.prototype.Wd.call(this,t)}},Rd:function(t){T.oQ.MT&&!t.originalEvent instanceof MouseEvent||!this.lnglats||(T.Cmd3BaseTool.prototype.Rd.call(this,t),map.removeLayer(this.Yt),this.lnglats.push([t.lnglat.lat,t.lnglat.lng]),this.Yt=new T.CloseCurve(this.lnglats,this.options.style),this.layers.addLayer(this.Yt),this.Yt=null,delete this.Yt,this.lnglats=null)}}),T.GatheringPlaceTool=T.Cmd2BaseTool.extend({options:{style:{color:"red",weight:5,opacity:.5,fillColor:"red",fillOpacity:.2,fill:!0}},initialize:function(t,i){T.setOptions(this,i),T.Cmd2BaseTool.prototype.initialize.call(this,t,i)},pY:function(t){if((!this.lnglats||this.lnglats.length>1)&&(this.lnglats=[]),this.lnglats.push(t.lnglat),this.Yt?this.Yt.setLngLats(this.lnglats):(this.Yt=new T.GatheringPlace(this.lnglats,this.options.style),map.addLayer(this.Yt),this.jE.getContainer().style.cursor="crosshair",this.Yt.getElement().style.cursor="crosshair"),T.Cmd2BaseTool.prototype.pY.call(this,t),2==this.lnglats.length){map.removeLayer(this.Yt);var i=new T.GatheringPlace(this.lnglats,this.options.style);this.layers.addLayer(i),this.jE.getContainer().style.cursor="",this.Yt.getElement().style.cursor="",delete this.Yt,this.Yt=null}},Wd:function(t){if(0!=this.lnglats.length&&this.Yt){var i=[];i=i.concat(this.lnglats),i.push([t.lnglat.lat,t.lnglat.lng]),this.Yt.setLngLats(i),T.Cmd2BaseTool.prototype.Wd.call(this,t)}}}),T.RoundRectTool=T.Cmd2BaseTool.extend({options:{style:{color:"red",weight:5,opacity:.5,fillColor:"red",fillOpacity:.2,fill:!0}},pY:function(t){if((!this.lnglats||this.lnglats.length>1)&&(this.lnglats=[]),this.lnglats.push(t.lnglat),this.Yt?this.Yt.setLngLats(this.lnglats):(this.Yt=new T.RoundRect(this.lnglats,this.options.style),map.addLayer(this.Yt),this.jE.getContainer().style.cursor="crosshair",this.Yt.getElement().style.cursor="crosshair"),T.Cmd2BaseTool.prototype.pY.call(this,t),2==this.lnglats.length){map.removeLayer(this.Yt);var i=new T.RoundRect(this.lnglats,this.options.style);this.layers.addLayer(i),this.jE.getContainer().style.cursor="",this.Yt.getElement().style.cursor="",delete this.Yt,this.Yt=null}},Wd:function(t){if(0!=this.lnglats.length&&this.Yt){var i=[];i=i.concat(this.lnglats),i.push([t.lnglat.lat,t.lnglat.lng]),this.Yt.setLngLats(i),T.Cmd2BaseTool.prototype.Wd.call(this,t)}}}),T.SectorTool=T.Cmd2BaseTool.extend({options:{style:{color:"red",weight:5,opacity:.5,fillColor:"red",fillOpacity:.2,fill:!0}},initialize:function(t,i){T.setOptions(this,i),T.Cmd2BaseTool.prototype.initialize.call(this,t,i)},pY:function(t){if((!this.lnglats||this.lnglats.length>2)&&(this.lnglats=[]),this.lnglats.push(t.lnglat),this.Yt?this.Yt.setLngLats(this.lnglats):(this.Yt=new T.Sector(this.lnglats,this.options.style),map.addLayer(this.Yt),this.jE.getContainer().style.cursor="crosshair",this.Yt.getElement().style.cursor="crosshair"),T.Cmd2BaseTool.prototype.pY.call(this,t),3==this.lnglats.length){map.removeLayer(this.Yt);var i=new T.Sector(this.lnglats,this.options.style);this.layers.addLayer(i),this.jE.getContainer().style.cursor="",this.Yt.getElement().style.cursor="",delete this.Yt,this.Yt=null}},Wd:function(t){if(0!=this.lnglats.length&&this.Yt){var i=[];i=i.concat(this.lnglats),i.push([t.lnglat.lat,t.lnglat.lng]),this.Yt.setLngLats(i),T.Cmd2BaseTool.prototype.Wd.call(this,t)}}}),T.BezierCurveArrowTool=T.Cmd3BaseTool.extend({pY:function(t){this.lnglats||(this.lnglats=[]),this.lnglats.push([t.lnglat.lat,t.lnglat.lng]),this.Yt?this.Yt.setLngLats(this.lnglats):(this.Yt=new T.BezierCurveArrow(this.lnglats,this.options.style),this.jE.addLayer(this.Yt)),T.Cmd3BaseTool.prototype.pY.call(this,t)},Wd:function(t){if(this.lnglats&&0!=this.lnglats.length&&this.Yt){var i=[];i=i.concat(this.lnglats),i.push([t.lnglat.lat,t.lnglat.lng]),this.Yt.setLngLats(i),T.Cmd3BaseTool.prototype.Wd.call(this,t)}},Rd:function(t){T.oQ.MT&&!t.originalEvent instanceof MouseEvent||!this.lnglats||(T.Cmd3BaseTool.prototype.Rd.call(this,t),this.jE.removeLayer(this.Yt),this.lnglats.push([t.lnglat.lat,t.lnglat.lng]),this.Yt=new T.BezierCurveArrow(this.lnglats,this.options.style),this.layers.addLayer(this.Yt),T.Cmd3BaseTool.prototype.Rd.call(this,t),this.Yt=null,delete this.Yt,this.lnglats=null)}}),T.CardinalCurveArrowTool=T.Cmd3BaseTool.extend({pY:function(t){this.lnglats||(this.lnglats=[]),this.lnglats.push([t.lnglat.lat,t.lnglat.lng]),this.Yt?this.Yt.setLngLats(this.lnglats):(this.Yt=new T.CardinalCurveArrow(this.lnglats,this.options.style),this.jE.addLayer(this.Yt)),T.Cmd3BaseTool.prototype.pY.call(this,t)},Wd:function(t){if(this.lnglats&&0!=this.lnglats.length&&this.Yt){var i=[];i=i.concat(this.lnglats),i.push([t.lnglat.lat,t.lnglat.lng]),this.Yt.setLngLats(i),T.Cmd3BaseTool.prototype.Wd.call(this,t)}},Rd:function(t){T.oQ.MT&&!t.originalEvent instanceof MouseEvent||!this.lnglats||(T.Cmd3BaseTool.prototype.Rd.call(this,t),this.jE.removeLayer(this.Yt),this.lnglats.push([t.lnglat.lat,t.lnglat.lng]),this.Yt=new T.CardinalCurveArrow(this.lnglats,this.options.style),this.layers.addLayer(this.Yt),this.Yt=null,delete this.Yt,this.lnglats=null)}}),T.DiagonalArrowTool=T.Cmd3BaseTool.extend({options:{style:{color:"red",weight:5,opacity:.5,fillColor:"red",fillOpacity:.2,fill:!0}},pY:function(t){this.lnglats||(this.lnglats=[]),this.lnglats.push([t.lnglat.lat,t.lnglat.lng]),this.Yt?this.Yt.setLngLats(this.lnglats):(this.Yt=new T.DiagonalArrow(this.lnglats,this.options.style),this.jE.addLayer(this.Yt)),T.Cmd3BaseTool.prototype.pY.call(this,t)},Wd:function(t){if(this.lnglats&&0!=this.lnglats.length&&this.Yt){var i=[];i=i.concat(this.lnglats),i.push([t.lnglat.lat,t.lnglat.lng]),this.Yt.setLngLats(i),T.Cmd3BaseTool.prototype.Wd.call(this,t)}},Rd:function(t){T.oQ.MT&&!t.originalEvent instanceof MouseEvent||!this.lnglats||(T.Cmd3BaseTool.prototype.Rd.call(this,t),this.jE.removeLayer(this.Yt),this.lnglats.push([t.lnglat.lat,t.lnglat.lng]),this.Yt=new T.DiagonalArrow(this.lnglats,this.options.style),this.layers.addLayer(this.Yt),this.Yt=null,delete this.Yt,this.lnglats=null)}}),T.DoubleArrowTool=T.Cmd2BaseTool.extend({options:{style:{color:"red",weight:5,opacity:.5,fillColor:"red",fillOpacity:.2,fill:!0}},pY:function(t){if((!this.lnglats||this.lnglats.length>3)&&(this.lnglats=[]),this.lnglats.push([t.lnglat.lat,t.lnglat.lng]),this.Yt?this.Yt.setLngLats(this.lnglats):(this.Yt=new T.DoubleArrow(this.lnglats,this.options.style),this.jE.addLayer(this.Yt),this.jE.getContainer().style.cursor="crosshair",this.Yt.getElement().style.cursor="crosshair"),T.Cmd2BaseTool.prototype.pY.call(this,t),4==this.lnglats.length){this.jE.removeLayer(this.Yt);var i=new T.DoubleArrow(this.lnglats,this.options.style);this.jE.getContainer().style.cursor="",this.layers.addLayer(i),delete this.Yt,this.Yt=null}},Wd:function(t){if(0!=this.lnglats.length&&this.Yt){var i=[];i=i.concat(this.lnglats),i.push([t.lnglat.lat,t.lnglat.lng]),this.Yt.setLngLats(i),T.Cmd2BaseTool.prototype.Wd.call(this,t)}}}),T.DoveTailDiagonalArrowTool=T.Cmd3BaseTool.extend({options:{style:{color:"red",weight:5,opacity:.5,fillColor:"red",fillOpacity:.2,fill:!0}},pY:function(t){this.lnglats||(this.lnglats=[]),this.lnglats.push([t.lnglat.lat,t.lnglat.lng]),this.Yt?this.Yt.setLngLats(this.lnglats):(this.Yt=new T.DoveTailDiagonalArrow(this.lnglats,this.options.style),this.jE.addLayer(this.Yt)),T.Cmd3BaseTool.prototype.pY.call(this,t)},Wd:function(t){if(this.lnglats&&0!=this.lnglats.length&&this.Yt){var i=[];i=i.concat(this.lnglats),i.push([t.lnglat.lat,t.lnglat.lng]),this.Yt.setLngLats(i),T.Cmd3BaseTool.prototype.Wd.call(this,t)}},Rd:function(t){T.oQ.MT&&!t.originalEvent instanceof MouseEvent||!this.lnglats||(T.Cmd3BaseTool.prototype.Rd.call(this,t),this.jE.removeLayer(this.Yt),this.lnglats.push([t.lnglat.lat,t.lnglat.lng]),this.Yt=new T.DoveTailDiagonalArrow(this.lnglats,this.options.style),this.layers.addLayer(this.Yt),this.Yt=null,delete this.Yt,this.lnglats=null)}}),T.DoveTailStraightArrowTool=T.Cmd3BaseTool.extend({options:{style:{color:"red",weight:5,opacity:.5,fillColor:"red",fillOpacity:.2,fill:!0}},pY:function(t){this.lnglats||(this.lnglats=[]),this.lnglats.push([t.lnglat.lat,t.lnglat.lng]),this.Yt?this.Yt.setLngLats(this.lnglats):(this.Yt=new T.DoveTailStraightArrow(this.lnglats,this.options.style),map.addLayer(this.Yt)),T.Cmd3BaseTool.prototype.pY.call(this,t)},Wd:function(t){if(this.lnglats&&0!=this.lnglats.length&&this.Yt){var i=[];i=i.concat(this.lnglats),i.push([t.lnglat.lat,t.lnglat.lng]),this.Yt.setLngLats(i),T.Cmd3BaseTool.prototype.Wd.call(this,t)}},Rd:function(t){T.oQ.MT&&!t.originalEvent instanceof MouseEvent||!this.lnglats||(T.Cmd3BaseTool.prototype.Rd.call(this,t),map.removeLayer(this.Yt),this.lnglats.push([t.lnglat.lat,t.lnglat.lng]),this.Yt=new T.DoveTailStraightArrow(this.lnglats,this.options.style),this.layers.addLayer(this.Yt),this.Yt=null,delete this.Yt,this.lnglats=null)}}),T.ParallelSearchTool=T.Cmd3BaseTool.extend({pY:function(t){this.lnglats||(this.lnglats=[]),this.lnglats.push([t.lnglat.lat,t.lnglat.lng]),this.Yt?this.Yt.setLngLats(this.lnglats):(this.Yt=new T.ParallelSearch(this.lnglats,this.options.style),this.jE.addLayer(this.Yt)),T.Cmd3BaseTool.prototype.pY.call(this,t)},Wd:function(t){if(this.lnglats&&0!=this.lnglats.length&&this.Yt){var i=[];i=i.concat(this.lnglats),i.push([t.lnglat.lat,t.lnglat.lng]),this.Yt.setLngLats(i),T.Cmd3BaseTool.prototype.Wd.call(this,t)}},Rd:function(t){T.oQ.MT&&!t.originalEvent instanceof MouseEvent||!this.lnglats||(T.Cmd3BaseTool.prototype.Rd.call(this,t),this.jE.removeLayer(this.Yt),this.lnglats.push([t.lnglat.lat,t.lnglat.lng]),this.Yt=new T.ParallelSearch(this.lnglats,this.options.style),this.layers.addLayer(this.Yt),this.Yt=null,delete this.Yt,this.lnglats=null)}}),T.PolylineArrowTool=T.Cmd3BaseTool.extend({pY:function(t){this.lnglats||(this.lnglats=[]),this.lnglats.push([t.lnglat.lat,t.lnglat.lng]),this.Yt?this.Yt.setLngLats(this.lnglats):(this.Yt=new T.PolylineArrow(this.lnglats,this.options.style),this.jE.addLayer(this.Yt)),T.Cmd3BaseTool.prototype.pY.call(this,t)},Wd:function(t){if(this.lnglats&&0!=this.lnglats.length&&this.Yt){var i=[];i=i.concat(this.lnglats),i.push([t.lnglat.lat,t.lnglat.lng]),this.Yt.setLngLats(i),T.Cmd3BaseTool.prototype.Wd.call(this,t)}},Rd:function(t){T.oQ.MT&&!t.originalEvent instanceof MouseEvent||!this.lnglats||(T.Cmd3BaseTool.prototype.Rd.call(this,t),this.jE.removeLayer(this.Yt),this.lnglats.push([t.lnglat.lat,t.lnglat.lng]),this.Yt=new T.PolylineArrow(this.lnglats,this.options.style),this.layers.addLayer(this.Yt),this.Yt=null,delete this.Yt,this.lnglats=null)}}),T.SectorSearchTool=T.Cmd2BaseTool.extend({pY:function(t){if((!this.lnglats||this.lnglats.length>1)&&(this.lnglats=[]),this.lnglats.push([t.lnglat.lat,t.lnglat.lng]),this.Yt?this.Yt.setLngLats(this.lnglats):(this.Yt=new T.SectorSearch(this.lnglats,this.options.style),this.jE.addLayer(this.Yt),this.jE.getContainer().style.cursor="crosshair",this.Yt.getElement().style.cursor="crosshair"),T.Cmd2BaseTool.prototype.pY.call(this,t),2==this.lnglats.length){this.jE.removeLayer(this.Yt);var i=new T.SectorSearch(this.lnglats,this.options.style);this.jE.getContainer().style.cursor="",this.layers.addLayer(i),delete this.Yt,this.Yt=null}},Wd:function(t){if(0!=this.lnglats.length&&this.Yt){var i=[];i=i.concat(this.lnglats),i.push([t.lnglat.lat,t.lnglat.lng]),this.Yt.setLngLats(i),T.Cmd2BaseTool.prototype.Wd.call(this,t)}}}),T.StraightArrowTool=T.Cmd3BaseTool.extend({options:{style:{color:"red",weight:5,opacity:.5,fillColor:"red",fillOpacity:.2,fill:!0}},pY:function(t){this.lnglats||(this.lnglats=[]),this.lnglats.push([t.lnglat.lat,t.lnglat.lng]),this.Yt?this.Yt.setLngLats(this.lnglats):(this.Yt=new T.StraightArrow(this.lnglats,this.options.style),this.jE.addLayer(this.Yt)),T.Cmd3BaseTool.prototype.pY.call(this,t)},Wd:function(t){if(this.lnglats&&0!=this.lnglats.length&&this.Yt){var i=[];i=i.concat(this.lnglats),i.push([t.lnglat.lat,t.lnglat.lng]),this.Yt.setLngLats(i),T.Cmd3BaseTool.prototype.Wd.call(this,t)}},Rd:function(t){T.oQ.MT&&!t.originalEvent instanceof MouseEvent||!this.lnglats||(T.Cmd3BaseTool.prototype.Rd.call(this,t),this.jE.removeLayer(this.Yt),this.lnglats.push([t.lnglat.lat,t.lnglat.lng]),this.Yt=new T.StraightArrow(this.lnglats,this.options.style),this.layers.addLayer(this.Yt),this.Yt=null,delete this.Yt,this.lnglats=null)}}),T.BezierCurve2Tool=T.Cmd2BaseTool.extend({pY:function(t){if((!this.lnglats||this.lnglats.length>2)&&(this.lnglats=[]),this.lnglats.push(t.lnglat),this.Yt?this.Yt.setLngLats(this.lnglats):(this.Yt=new T.BezierCurve2(this.lnglats,this.options.style),map.addLayer(this.Yt),this.jE.getContainer().style.cursor="crosshair",this.Yt.getElement().style.cursor="crosshair"),T.Cmd2BaseTool.prototype.pY.call(this,t),3==this.lnglats.length){map.removeLayer(this.Yt);var i=new T.BezierCurve2(this.lnglats,this.options.style);this.layers.addLayer(i),this.jE.getContainer().style.cursor="",this.Yt.getElement().style.cursor="",delete this.Yt,this.Yt=null}},Wd:function(t){if(0!=this.lnglats.length&&this.Yt){var i=[];i=i.concat(this.lnglats),i.push([t.lnglat.lat,t.lnglat.lng]),this.Yt.setLngLats(i),T.Cmd2BaseTool.prototype.Wd.call(this,t)}}}),T.BezierCurve3Tool=T.Cmd2BaseTool.extend({pY:function(t){if((!this.lnglats||this.lnglats.length>3)&&(this.lnglats=[]),this.lnglats.push([t.lnglat.lat,t.lnglat.lng]),this.Yt?this.Yt.setLngLats(this.lnglats):(this.Yt=new T.BezierCurve3(this.lnglats,this.options.style),map.addLayer(this.Yt),this.jE.getContainer().style.cursor="crosshair",this.Yt.getElement().style.cursor="crosshair"),T.Cmd2BaseTool.prototype.pY.call(this,t),4==this.lnglats.length){map.removeLayer(this.Yt);var i=new T.BezierCurve3(this.lnglats,this.options.style);this.jE.getContainer().style.cursor="",this.layers.addLayer(i),delete this.Yt,this.Yt=null}},Wd:function(t){if(0!=this.lnglats.length&&this.Yt){var i=[];i=i.concat(this.lnglats),i.push([t.lnglat.lat,t.lnglat.lng]),this.Yt.setLngLats(i),T.Cmd2BaseTool.prototype.Wd.call(this,t)}}}),T.BezierCurveNTool=T.Cmd3BaseTool.extend({pY:function(t){this.lnglats||(this.lnglats=[]),this.lnglats.push([t.lnglat.lat,t.lnglat.lng]),this.Yt?this.Yt.setLngLats(this.lnglats):(this.Yt=new T.BezierCurveN(this.lnglats,this.options.style),this.jE.addLayer(this.Yt)),T.Cmd3BaseTool.prototype.pY.call(this,t)},Wd:function(t){if(this.lnglats&&0!=this.lnglats.length&&this.Yt){var i=[];i=i.concat(this.lnglats),i.push([t.lnglat.lat,t.lnglat.lng]),this.Yt.setLngLats(i),T.Cmd3BaseTool.prototype.Wd.call(this,t)}},Rd:function(t){T.oQ.MT&&!t.originalEvent instanceof MouseEvent||!this.lnglats||(T.Cmd3BaseTool.prototype.Rd.call(this,t),this.jE.removeLayer(this.Yt),this.lnglats.push([t.lnglat.lat,t.lnglat.lng]),this.Yt=new T.BezierCurveN(this.lnglats,this.options.style),this.layers.addLayer(this.Yt),T.Cmd3BaseTool.prototype.Rd.call(this,t),this.Yt=null,delete this.Yt,this.lnglats=null)}}),T.CardinalCurveTool=T.Cmd3BaseTool.extend({pY:function(t){this.lnglats||(this.lnglats=[]),this.lnglats.push([t.lnglat.lat,t.lnglat.lng]),this.Yt?this.Yt.setLngLats(this.lnglats):(this.Yt=new T.CardinalCurve(this.lnglats,this.options.style),this.jE.addLayer(this.Yt)),T.Cmd3BaseTool.prototype.pY.call(this,t)},Wd:function(t){if(this.lnglats&&0!=this.lnglats.length&&this.Yt){var i=[];i=i.concat(this.lnglats),i.push([t.lnglat.lat,t.lnglat.lng]),this.Yt.setLngLats(i),T.Cmd3BaseTool.prototype.Wd.call(this,t)}},Rd:function(t){T.oQ.MT&&!t.originalEvent instanceof MouseEvent||!this.lnglats||(T.Cmd3BaseTool.prototype.Rd.call(this,t),this.jE.removeLayer(this.Yt),this.lnglats.push([t.lnglat.lat,t.lnglat.lng]),this.Yt=new T.CardinalCurve(this.lnglats,this.options.style),this.layers.addLayer(this.Yt),this.Yt=null,delete this.Yt,this.lnglats=null)}}),T.CurveFlagTool=T.Cmd2BaseTool.extend({options:{style:{color:"red",weight:5,opacity:.5,fillColor:"red",fillOpacity:.2,fill:!0}},initialize:function(t,i){T.setOptions(this,i),T.Cmd2BaseTool.prototype.initialize.call(this,t,i)},pY:function(t){if((!this.lnglats||this.lnglats.length>1)&&(this.lnglats=[]),this.lnglats.push(t.lnglat),this.Yt?this.Yt.setLngLats(this.lnglats):(this.Yt=new T.CurveFlag(this.lnglats,this.options.style),map.addLayer(this.Yt),this.jE.getContainer().style.cursor="crosshair",this.Yt.getElement().style.cursor="crosshair"),T.Cmd2BaseTool.prototype.pY.call(this,t),2==this.lnglats.length){map.removeLayer(this.Yt);var i=new T.CurveFlag(this.lnglats,this.options.style);this.layers.addLayer(i),this.jE.getContainer().style.cursor="",this.Yt.getElement().style.cursor="",delete this.Yt,this.Yt=null}},Wd:function(t){if(0!=this.lnglats.length&&this.Yt){var i=[];i=i.concat(this.lnglats),i.push([t.lnglat.lat,t.lnglat.lng]),this.Yt.setLngLats(i),T.Cmd2BaseTool.prototype.Wd.call(this,t)}}}),T.RectFlagTool=T.Cmd2BaseTool.extend({options:{style:{color:"red",weight:5,opacity:.5,fillColor:"red",fillOpacity:.2,fill:!0}},initialize:function(t,i){T.setOptions(this,i),T.Cmd2BaseTool.prototype.initialize.call(this,t,i)},pY:function(t){if((!this.lnglats||this.lnglats.length>1)&&(this.lnglats=[]),this.lnglats.push(t.lnglat),this.Yt?this.Yt.setLngLats(this.lnglats):(this.Yt=new T.RectFlag(this.lnglats,this.options.style),map.addLayer(this.Yt),this.jE.getContainer().style.cursor="crosshair",this.Yt.getElement().style.cursor="crosshair"),T.Cmd2BaseTool.prototype.pY.call(this,t),2==this.lnglats.length){map.removeLayer(this.Yt);var i=new T.RectFlag(this.lnglats,this.options.style);this.layers.addLayer(i),this.jE.getContainer().style.cursor="",this.Yt.getElement().style.cursor="",delete this.Yt,this.Yt=null}},Wd:function(t){if(0!=this.lnglats.length&&this.Yt){var i=[];i=i.concat(this.lnglats),i.push([t.lnglat.lat,t.lnglat.lng]),this.Yt.setLngLats(i),T.Cmd2BaseTool.prototype.Wd.call(this,t)}}}),T.TriangleFlagTool=T.Cmd2BaseTool.extend({options:{style:{color:"red",weight:5,opacity:.5,fillColor:"red",fillOpacity:.2,fill:!0}},initialize:function(t,i){T.setOptions(this,i),T.Cmd2BaseTool.prototype.initialize.call(this,t,i)},pY:function(t){if((!this.lnglats||this.lnglats.length>1)&&(this.lnglats=[]),this.lnglats.push(t.lnglat),this.Yt?this.Yt.setLngLats(this.lnglats):(this.Yt=new T.TriangleFlag(this.lnglats,this.options.style),map.addLayer(this.Yt),this.jE.getContainer().style.cursor="crosshair",this.Yt.getElement().style.cursor="crosshair"),T.Cmd2BaseTool.prototype.pY.call(this,t),2==this.lnglats.length){map.removeLayer(this.Yt);var i=new T.TriangleFlag(this.lnglats,this.options.style);this.layers.addLayer(i),this.jE.getContainer().style.cursor="",this.Yt.getElement().style.cursor="",delete this.Yt,this.Yt=null}},Wd:function(t){if(0!=this.lnglats.length&&this.Yt){var i=[];i=i.concat(this.lnglats),i.push([t.lnglat.lat,t.lnglat.lng]),this.Yt.setLngLats(i),T.Cmd2BaseTool.prototype.Wd.call(this,t)}}}),T.HandDrawing=T.Cmd3BaseTool.extend({options:{style:{color:"red",weight:5,opacity:.5,fillColor:"red",fillOpacity:.2,fill:!0}},initialize:function(t,i){T.setOptions(this,i),this.dbClick=this.touch?"longpress":"dblclick";var e=!this.options.style.fill;e&&(this.options.style={color:this.options.style.color,weight:this.options.style.weight,opacity:this.options.style.opacity,lineStyle:this.options.style.lineStyle}),this.Poly=e?T.Polyline:T.Polygon,T.Cmd3BaseTool.prototype.initialize.call(this,t,i)},pY:function(t){this.lnglats||(this.lnglats=[]),this.lnglats.push([t.lnglat.lat,t.lnglat.lng]),this.Yt||(this.Yt=new this.Poly(this.lnglats,this.options.style),map.addLayer(this.Yt),this.jE.getContainer().style.cursor="crosshair",this.Yt.getElement().style.cursor="crosshair"),T.Cmd3BaseTool.prototype.pY.call(this,t)},Wd:function(t){this.lnglats&&0!=this.lnglats.length&&this.Yt&&(this.lnglats.push([t.lnglat.lat,t.lnglat.lng]),this.Yt.setLngLats(this.lnglats),T.Cmd3BaseTool.prototype.Wd.call(this,t))},Rd:function(t){if(!(T.oQ.MT&&!t.originalEvent instanceof MouseEvent)&&this.lnglats){T.Cmd3BaseTool.prototype.Rd.call(this,t),map.removeLayer(this.Yt);var i=this.lnglats.slice(0,this.lnglats.length-1);1==i.length?this.jE.centerAndZoom(t.lnglat,map.getZoom()+1):(this.Yt=new this.Poly(i,this.options.style),this.layers.addLayer(this.Yt)),this.jE.getContainer().style.cursor="",this.Yt.getElement().style.cursor="",this.Yt=null,delete this.Yt,this.lnglats=null}}}),T.Control.militarySymbols=T.Control.extend({options:{},datas:{flag:{name:"军旗",subs:{CurveFlag:{name:"曲线旗",handler:T.CurveFlagTool,options:{}},RectFlag:{name:"方块旗",handler:T.RectFlagTool,options:{}},TriangleFlag:{name:"三角旗",handler:T.TriangleFlagTool,options:{}}}},LineMark:{name:"绘制线标",subs:{Bezier2:{name:"二次贝塞尔曲线",handler:T.BezierCurve2Tool,options:{}},Bezier3:{name:"三次贝塞尔曲线",handler:T.BezierCurve3Tool,options:{}},BezierN:{name:"N次贝塞尔曲线",handler:T.BezierCurveNTool,options:{}},CardinalCurve:{name:"Cardinal曲线",handler:T.CardinalCurveTool,options:{}},Arc:{name:"弧",handler:T.ArcTool,options:{style:{color:"red",weight:5,opacity:.5}}},HandDrawing:{name:"自由线",handler:T.HandDrawing,options:{style:{color:"red",weight:5,opacity:.5}}}}},SurfaceMark:{name:"绘制面标",subs:{Arc:{name:"弓形",handler:T.ArcTool,options:{style:{color:"red",weight:5,opacity:.5,fillColor:"red",fillOpacity:.2,fill:!0}}},GatheringPlace:{name:"聚集区",handler:T.GatheringPlaceTool,options:{style:{color:"red",weight:5,opacity:.5,fillColor:"red",fillOpacity:.2,fill:!0}}},CloseCurve:{name:"闭合曲线",handler:T.CloseCurveTool,options:{style:{color:"red",weight:5,opacity:.5,fillColor:"red",fillOpacity:.2,fill:!0}}},RoundRect:{name:"圆角矩形",handler:T.RoundRectTool,options:{}},HandDrawing:{name:"手绘面",handler:T.HandDrawing,options:{style:{color:"red",weight:5,opacity:.5,fillColor:"red",fillOpacity:.2,fill:!0}}},Sector:{name:"扇形",handler:T.SectorTool,options:{style:{color:"red",weight:5,opacity:.5,fillColor:"red",fillOpacity:.2,fill:!0}}}}},SurfaceArrow:{name:"绘制面状箭头",subs:{DiagonalArrow:{name:"斜线箭头",handler:T.DiagonalArrowTool,options:{style:{color:"red",weight:5,opacity:.5,fillColor:"red",fillOpacity:.2,fill:!0}}},StraightArrow:{name:"直线箭头",handler:T.StraightArrowTool,options:{style:{color:"red",weight:5,opacity:.5,fillColor:"red",fillOpacity:.2,fill:!0}}},DoveTailDiagonalArrow:{name:"燕尾斜箭头",handler:T.DoveTailDiagonalArrowTool,options:{style:{color:"red",weight:5,opacity:.5,fillColor:"red",fillOpacity:.2,fill:!0}}},DoveTailStraightArrow:{name:"燕尾直箭头",handler:T.DoveTailStraightArrowTool,options:{style:{color:"red",weight:5,opacity:.5,fillColor:"red",fillOpacity:.2,fill:!0}}},DoubleArrow:{name:"双箭头",handler:T.DoubleArrowTool,options:{style:{color:"red",weight:5,opacity:.5,fillColor:"red",fillOpacity:.2,fill:!0}}}}},LineArrow:{name:"绘制线状箭头",subs:{PolylineArrow:{name:"折线箭头",handler:T.PolylineArrowTool},BezierCurveArrow:{name:"贝塞尔箭头",handler:T.BezierCurveArrowTool},CardinalCurveArrow:{name:"Cardinal箭头",handler:T.CardinalCurveArrowTool},SectorSearch:{name:"扇形搜寻区箭头",handler:T.SectorSearchTool},ParallelSearch:{name:"平行搜寻区箭头",handler:T.ParallelSearchTool}}}},initialize:function(t){this.setOptions(t)},onAdd:function(t){this.map=t,this.layers=new T.LayerGroup;var i=this.container=this.s("ul");i.style.marginBottom="20px",i.id="nav",this.uw(i);var e=this.datas;for(var s in e){var n=e[s],o=n.subs,h=this.s("li","",i),r=this.s("a","selected",h);r.innerHTML=n.name;var a=this.s("ul","",h);a.style.right=this.options.position.indexOf("right")>-1?"110px":"-110px",a.style.top=this.options.position.indexOf("top")>-1?"0px":"-45px";for(var l in o){var u=o[l],c=this.s("li","",a),f=this.s("a","selected",c);f.innerHTML=u.name;var p=this.Ks(f,u,this.layers);f._item=u,T.oq.on(f,"click",p,this)}}var d=this.s("li","",i),y=this.s("a","selected",d);y.innerHTML="清空图层",T.oq.on(y,"click",this.Td,this);var g=this.s("li","",i),m=this.s("a","selected",g);return m.innerHTML="关闭当前工具",T.oq.on(m,"click",this.td,this),i},onRemove:function(){T.oq.off(this.container,"click",T.oq.uw).off(this.container,"mousedown",T.oq.uw).off(this.container,"dblclick",T.oq.uw).off(this.container,"contextmenu",T.oq.uw),this.jE.removeLayer(this.layers),this.layers=null},td:function(t){this._handler.close()},Td:function(t){this.layers.clearLayers()},clearLayers:function(){this.Td()},getLayers:function(){return this.layers.getLayers()},close:function(){this.td()},Ks:function(t,i,e){var s=this,n=this.map;return function(t){s._handler&&s._handler.close(),i.options=i.options?i.options:{},i.options.layers=e,s._handler=new i.handler(n,i.options),s._handler.open()}},s:function(t,i,e){var s=document.createElement(t);return i&&i.length>0&&(s.className=i||""),e&&e.appendChild(s),s},uw:function(t){T.oq.on(t,"click",T.oq.uw).on(t,"mousedown",T.oq.uw).on(t,"dblclick",T.oq.uw).on(t,"contextmenu",T.oq.uw)}});')
            localStorage.setItem("TDT_version",'202403190954')
            localStorage.setItem("TDT_components0",'T.Tool=T.Kr.extend({includes:T.iQ.OQ}),T.drawVersion="4.0",T.Tool=T.Kr.extend({includes:T.iQ.OQ}),T.aO={},T.aO.Feature=T.Tool.extend({includes:T.iQ.OQ,initialize:function(t,i){this.jE=t,this.Ow=t.Ow,this.SO=t.aw.overlayPane,i&&i.sO&&(i.sO=T.S.extend({},this.options.sO,i.sO)),T.setOptions(this,i)},enable:function(){this.eU||(this.wQ("aE",{handler:this.type}),this.jE.wQ("draw:drawstart",{layerType:this.type}),T.Tool.prototype.enable.call(this))},disable:function(){this.eU&&(T.Tool.prototype.disable.call(this),this.jE.wQ("draw:drawstop",{layerType:this.type}),this.wQ("disabled",{handler:this.type}))},oU:function(){var t=this.jE;t&&(T._Q.Oq(),T.oq.on(this.Ow,"keyup",this.DO,this))},Ar:function(){this.jE&&(T._Q.Pq(),T.oq.off(this.Ow,"keyup",this.DO,this))},setOptions:function(t){T.setOptions(this,t)},dO:function(t){this.jE.wQ("draw:created",{layer:t,layerType:this.type})},DO:function(t){27===t.keyCode&&this.disable()}}),T.aO.Polyline=T.aO.Feature.extend({v:{TYPE:"polyline",FO:1e3},Poly:T.Polyline,options:{fO:!0,GO:!1,gO:{color:"#b00b00",eO:2500},icon:new T.DivIcon({iconSize:[11,11]}),HO:5,hO:4e3,sO:{stroke:!0,color:"#0000FF",weight:3,opacity:.5,fill:!1,JO:!0},KI:!0,jO:!0,zIndexOffset:2e3},initialize:function(t,i){i&&i.gO&&(i.gO=T.S.extend({},this.options.gO,i.gO)),this.type=T.aO.Polyline.TYPE,T.aO.Feature.prototype.initialize.call(this,t,i)},oU:function(){if(this.KO=!0,this.kO=this.jE.bU.eU,this.jE.disableDoubleClickZoom(),T.aO.Feature.prototype.oU.call(this),this.jE){this.LO=[],this.lO||(this.lO=new T.fT),this.jE.addLayer(this.lO);var t=this.lO,i=this.jE;this.jE.on("layerremove",function(e){t&&t.hasLayer(e.layer)&&(t.removeLayer(e.layer),e.layer.ZO&&(e.layer.ZO.bE(function(t){t.label&&t.label.onRemove(i)}),e.layer.ZO.clearLayers(),e.layer.ZO.Qq()))}),this.ZO=new T.LayerGroup,this.jE.addLayer(this.ZO),this.CO=new this.Poly([],this.options.sO),this.VO||(this.VO=T.kr(this.jE.getCenter(),{icon:T.Lr({className:"tdt-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:6e3})),!T.oQ.ie&&T.oQ.touch&&T.oQ.mobile?(this.jE.on("touchstart",this._ontouchstart,this),this.jE.on("longpress",this._onlongpress,this),this.jE.on("touchend",this._ontouchend,this),this.jE.on("move",this._onmoveStart,this),this.jE.on("moveend",this._onmoveEnd,this)):(this.VO.on("mousedown",this.nu,this).addTo(this.jE),this.jE.on("mousemove",this.PY,this),this.jE.on("mouseup",this.cO,this),this.jE.on("dblclick ",this.BO,this)),this.jE.on("zoomend",this.hU,this)}},Ar:function(){T.aO.Feature.prototype.Ar.call(this),!T.oQ.ie&&T.oQ.touch&&T.oQ.mobile?(this.jE.off("touchstart",this._ontouchstart,this),this.jE.off("longpress",this._onlongpress,this),this.jE.off("touchend",this._ontouchend,this),this.jE.off("move",this._onmoveStart,this),this.jE.off("moveend",this._onmoveEnd,this)):(this.VO&&(this.VO.off("mousedown",this.nu,this),this.VO.off("mouseup",this.mu,this),this.jE.removeLayer(this.VO),delete this.VO),this.jE.off("mousemove",this.PY,this),this.jE.off("zoomend",this.hU,this),this.vO()),this.jE.removeLayer(this.CO),delete this.CO,this.kO&&this.jE.enableDoubleClickZoom()},NO:function(t){var i=this.jE;this.lO&&this.lO.hasLayer(t.layer)&&(this.lO.removeLayer(t.layer),t.layer.ZO&&(t.layer.ZO.bE(function(t){t.label&&t.label.onRemove(i)}),t.layer.ZO.clearLayers(),t.layer.ZO.Qq()))},bO:function(){if(!(this.LO.length<=1)){var t=this.LO.pop(),i=this.CO,e=this.CO.MO(i.Ht().length-1,1)[0];this.ZO.removeLayer(t),(i instanceof T.Polygon&&i.Ht()&&i.Ht()[0]&&i.Ht()[0].length<2||i.Ht().length<2)&&this.jE.removeLayer(i),this.nO(e,!1)}},_O:function(t){this.LO.length;poly=this.CO,this.LO.push(this.mO(t)),poly.Zt(t),(poly instanceof T.Polygon&&poly.Ht()&&poly.Ht()[0]&&2==poly.Ht()[0].length||2==poly.Ht().length)&&this.jE.addLayer(this.CO),this.nO(t,!0)},Qo:function(){if(this.CO){if(this.CO instanceof T.Polygon)var t=this.CO.Ht()[0][0];else t=this.CO.Ht()[0];var i=this.CO.qo(t,!0);if(!this.options.fO&&i||!this.Wo())return this.disable(),void(this._mouselabel&&this._mouselabel.Qq());this.dO(),this.disable()}},Wo:function(){return!0},hU:function(){this.wo()},PY:function(t){var i=(t.layerPoint,t.lnglat);this.Eo=i,this.wo(i),this.VO.sr(i),this._mouselabel&&this._mouselabel.sr&&this._mouselabel.sr(i),T.oq.preventDefault(t.originalEvent)},nO:function(t,i){this.eo(),this.Ro(t,i),this.vO()},_ontouchstart:function(t){this.ro=t.containerPoint},_onlongpress:function(t){this.ismoving||(this.mu(t),this.endDraw())},_ontouchend:function(t){this.mu(t)},_onmoveStart:function(t){this._moveStartCenter=this.jE.getCenter(),this.ismoving=!0},_onmoveEnd:function(t){var i=this,e=this.jE.getCenter(),s=this.jE.lngLatToContainerPoint(this._moveStartCenter),n=this.jE.lngLatToContainerPoint(e),o=s.sQ(n);setTimeout(function(){o.x<10&&o.y<10&&(i.ismoving=!1)},301)},nu:function(t){this.vO();var i=t.originalEvent;this.ro=T.SQ(i.clientX,i.clientY)},mu:function(t){if(this.CO)if(this.ro){var i=T.SQ(t.containerPoint.x,t.containerPoint.y);t.To||(t.To=i?i:t.containerPoint);var e=t.To.distanceTo(this.ro);Math.abs(e)<9*(window.PQ||1)&&this._O(t.lnglat),this.ro=null}else this.ro=t.containerPoint},eo:function(){this.LO.length},mO:function(t){var i=new T.Marker(t,{icon:this.options.icon,zIndexOffset:T.aO.Polyline.FO++});return this.to?i.setOpacity(1):i.setOpacity(0),this.ZO.addLayer(i),i},Yo:function(t){var i={};for(var e in t)i[e]="object"==typeof t[e]?this.Yo(t[e]):t[e];return i},wo:function(t){if(t){var i=this.LO.length;this.Uo||(this.Uo=new T.LayerGroup,this.jE.addLayer(this.Uo));var e=this.Yo(this.options.sO);if(e.lineStyle="dashed",i>0){if(t=t||this.Eo,this.Uo.getLayers().length<1){var s=new T.Polyline([this.LO[i-1].PE(),t],e);this.Uo.addLayer(s)}else this.Uo.getLayers()[0].Jt([this.LO[i-1].PE(),t]);if(this.CO instanceof T.Polygon&&i>1)if(this.Uo.getLayers().length<2){var s=new T.Polyline([this.LO[0].PE(),t],e);this.Uo.addLayer(s)}else this.Uo.getLayers()[1].Jt([this.LO[0].PE(),t])}}},vO:function(){if(this.uo)for(;this.uo.firstChild;)this.uo.removeChild(this.uo.firstChild);this.Uo&&this.Uo.getLayers().length>0&&this.Uo.clearLayers()},Io:function(t,i){var e,s,n,o=Math.floor(Math.sqrt(Math.pow(i.x-t.x,2)+Math.pow(i.y-t.y,2))),h=this.options.HO,r=this.options.hO,a=o>r?o-r:h;for(this.uo||(this.uo=T._Q.s("div","tdt-draw-guides",this.SO));a<o;a+=this.options.HO)e=a/o,s={x:Math.floor(t.x*(1-e)+e*i.x),y:Math.floor(t.y*(1-e)+e*i.y)},n=T._Q.s("div","tdt-draw-guide-dash",this.uo),n.style.backgroundColor=this.options.sO.color,T._Q.setPosition(n,s)},Ro:function(t,i){var e,s,n=this.LO.length;1===this.LO.length?this.io=0:(e=n-(i?2:1),s=t.distanceTo(this.LO[e].PE()),this.io+=s*(i?1:-1))},Oo:function(){var t,i=this.Eo,e=this.LO[this.LO.length-1].PE();return t=this.io+i.distanceTo(e),T.Po.oo(t,this.options.KI)},po:function(){this.Ao&&(clearTimeout(this.Ao),this.Ao=null)},ao:function(){this.LO.length>1&&this.LO[this.LO.length-1].off("click",this.Qo,this)},dO:function(){var t=new this.Poly(this.CO.Ht(),this.options.sO);T.aO.Feature.prototype.dO.call(this,t),this.KO=!1}}),T.aO.Polygon=T.aO.Polyline.extend({v:{TYPE:"polygon"},Poly:T.Polygon,options:{So:!1,sO:{stroke:!0,color:"#0000FF",weight:3,opacity:.5,fill:!0,fillColor:"#0000FF",fillOpacity:.2,JO:!0}},initialize:function(t,i){T.aO.Polyline.prototype.initialize.call(this,t,i),this.type=T.aO.Polygon.TYPE},oU:function(){T.aO.Feature.prototype.oU.call(this),this.jE&&(this.LO=[],this.ZO=new T.LayerGroup,this.jE.addLayer(this.ZO),this.CO=new T.Polygon([],this.options.sO),this.VO||(this.VO=T.kr(this.jE.getCenter(),{icon:T.Lr({className:"tdt-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:6001})),!T.oQ.ie&&T.oQ.touch&&T.oQ.mobile?(this.jE.on("touchstart",this._ontouchstart,this),this.jE.on("longpress",this._onlongpress,this),this.jE.on("touchend",this._ontouchend,this),this.jE.on("move",this._onmoveStart,this),this.jE.on("moveend",this._onmoveEnd,this)):(this.VO.on("mousedown",this.nu,this).addTo(this.jE),this.jE.on("mousemove",this.PY,this).on("zoomend",this.hU,this),this.jE.on("mouseup",this.cO,this),this.jE.on("dblclick ",this.BO,this)))},eo:function(){this.LO.length},Oo:function(){var t=this.so;return t?T.Po.Do(t,this.options.KI):null},Wo:function(){return this.LO.length>=3},nO:function(t,i){var e;!this.options.fO&&this.options.So&&(e=this.CO.Ht(),this.so=T.Po.Fo(e)),T.aO.Polyline.prototype.nO.call(this,t,i)},ao:function(){var t=this.LO.length;t>0&&(this.LO[0].off("click",this.Qo,this),t>2&&this.LO[t-1].off("dblclick",this.Qo,this))}}),T.aO.fo=T.aO.Feature.extend({options:{GO:!1},initialize:function(t,i){T.aO.Feature.prototype.initialize.call(this,t,i)},oU:function(){T.aO.Feature.prototype.oU.call(this),this.jE&&(this.Go=this.jE.AE.aE(),this.Go&&this.jE.AE.disable(),this.Ow.style.cursor="crosshair",this.jE.on("mousedown",this.nu,this).on("mousemove",this.PY,this))},Ar:function(){T.aO.Feature.prototype.Ar.call(this),this.jE&&(this.Go&&this.jE.AE.enable(),this.Ow.style.cursor="",this.jE.off("mousedown",this.nu,this).off("mousemove",this.PY,this),T.oq.off(document,"mouseup",this.mu,this),this.go&&(this.jE.removeLayer(this.go),delete this.go)),this.Ho=!1},nu:function(t){this.Ho=!0,this.lu=t.lnglat,T.oq.on(document,"mouseup",this.mu,this).preventDefault(t.originalEvent)},PY:function(t){var i=t.lnglat;this.Ho&&this.ho(i)},mu:function(){this.go&&this.dO(),this.disable(),this.options.GO&&this.enable()}}),T.aO.Rectangle=T.aO.fo.extend({v:{TYPE:"rectangle"},options:{sO:{stroke:!0,color:"#0000FF",weight:3,opacity:.5,fill:!0,fillColor:"#0000FF",fillOpacity:.2,JO:!0}},initialize:function(t,i){this.type=T.aO.Rectangle.TYPE,T.aO.fo.prototype.initialize.call(this,t,i)},ho:function(t){this.go?this.go.setBounds(new T.Kq(this.lu,t)):(this.go=new T.Rectangle(new T.Kq(this.lu,t),this.options.sO),this.jE.addLayer(this.go))},dO:function(){var t=new T.Rectangle(this.go.getBounds(),this.options.sO);T.aO.fo.prototype.dO.call(this,t)}}),T.aO.Circle=T.aO.fo.extend({v:{TYPE:"circle"},options:{sO:{stroke:!0,color:"#0000FF",weight:3,opacity:.5,fill:!0,fillColor:"#0000FF",fillOpacity:.2,JO:!0},showRadius:!0,KI:!0},initialize:function(t,i){this.type=T.aO.Circle.TYPE,T.aO.fo.prototype.initialize.call(this,t,i)},ho:function(t){this.go?this.go.setRadius(this.lu.distanceTo(t)):(this.go=new T.Circle(this.lu,this.lu.distanceTo(t),this.options.sO),this.jE.addLayer(this.go))},dO:function(){var t=new T.Circle(this.lu,this.go.getRadius(),this.options.sO);T.aO.fo.prototype.dO.call(this,t)},PY:function(t){var i,e=t.lnglat;this.options.showRadius,this.options.KI;this.Ho&&(this.ho(e),i=this.go.getRadius().toFixed(1))}}),T.Icon.DrawDefault=T.Icon.extend({options:{iconSize:[25,41],iconAnchor:[11,40],popupAnchor:[1,-41],shadowSize:[41,41]},tr:function(t){var i=t+"Url";if(this.options[i])return this.options[i];var e=T.Icon.Default.imagePath;return e+"/marker-"+t+(T.oQ.retina&&"icon"===t?"-2x":"")+".png"}}),T.aO.Marker=T.aO.Feature.extend({v:{TYPE:"marker"},options:{icon:new T.Icon.DrawDefault,GO:!1,zIndexOffset:2e3},initialize:function(t,i){this.type=T.aO.Marker.TYPE,T.aO.Feature.prototype.initialize.call(this,t,i)},oU:function(){if(T.aO.Feature.prototype.oU.call(this),this.jE.getContainer().style.cursor="pointer",this.jE)if(!T.oQ.ie&&T.oQ.touch&&T.oQ.mobile)this.jE.on("touchend",this.pY,this);else{if(!this.VO){var t=T.Lr({className:".tdt-mouse-marker-m",iconAnchor:[20,20],iconSize:[40,40]});this.VO=T.kr(this.jE.getCenter(),{icon:t,opacity:0,zIndexOffset:this.options.zIndexOffset})}this.VO.on("click",this.pY,this).addTo(this.jE),this._mouselabel=new T.Label({text:this.text?this.text:"点击标注",position:new T.dq(-1e4,-1e4),Jo:[20,-9],className:"tdt-label-m ",zIndex:4999}).addTo(this.jE),this.jE.on("mousemove",this.PY,this)}},Ar:function(){T.aO.Feature.prototype.Ar.call(this),this.jE&&(T.oQ.touch&&T.oQ.mobile?this.jE.off("touchend",this.pY,this):(this.jE.getContainer().style.cursor="",this._mouselabel.Qq(),this.II&&(this.II.off("click",this.pY,this),this.jE.off("click",this.pY,this).removeLayer(this.II),delete this.II),this.VO.off("click",this.pY,this),this.jE.removeLayer(this.VO),delete this.VO,this.jE.off("mousemove",this.PY,this)))},PY:function(t){var i=t.lnglat;this.VO.sr(i),!T.oQ.ie&&T.oQ.touch&&T.oQ.mobile||this._mouselabel.sr(i),this.II?(i=this.VO.PE(),this.II.sr(i)):(this.II=new T.Marker(i,{icon:this.options.icon,zIndexOffset:this.options.zIndexOffset-1}),this.II.on("click",this.pY,this),this.II.setOpacity(0),this.jE.on("click",this.pY,this).addLayer(this.II)),this.follow&&this.II.setOpacity(1)},pY:function(t){this.dO(t),this.disable()},dO:function(t){var i=new T.Marker(this.II.PE(),{icon:this.options.icon});T.aO.Feature.prototype.dO.call(this,i)}}),T.jo=T.jo||{},T.jo.Poly=T.Tool.extend({options:{icon:new T.DivIcon({iconSize:[11,11],className:"tdt-div-icon-black tdt-editing-icon"})},initialize:function(t,i){this.CO=t,T.setOptions(this,i),this.Ko=T.Polygon&&this.CO instanceof T.Polygon},oU:function(){this.CO.jE&&(this.ZO||this.ko(),this.CO.jE.addLayer(this.ZO))},Ar:function(){this.CO.jE&&(this.CO.jE.removeLayer(this.ZO),delete this.ZO,delete this.LO)},Lo:function(){this.ZO.clearLayers(),this.ko()},ko:function(){this.ZO||(this.ZO=new T.LayerGroup),this.LO=[];var t,i,e,s,n=this.CO.ht;for(this.Ko&&(n=n[0]),t=0,e=n.length;t<e;t++)s=this.mO(n[t],t),this.LO.push(s);var o,h;for(t=0,i=e-1;t<e;i=t++)(0!==t||T.Polygon&&this.CO instanceof T.Polygon)&&(o=this.LO[i],h=this.LO[t],this.lo(o,h),this.Zo(o,h))},_createMidMarker:function(t,i,e){var s=new T.DivIcon({iconSize:[11,11],className:e+" tdt-editing-icon"}),n=new T.Marker(t,{draggable:!0,icon:s});return n.Co=t,n.Vo=i,n.on("drag",this.co,this),n.on("dragend",this.Bo,this),this.ZO.addLayer(n),n},mO:function(t,i,e){var s=e?new T.DivIcon({iconSize:[11,11],className:e+" tdt-editing-icon"}):this.options.icon,n=new T.Marker(t,{draggable:!0,icon:s});return n.Co=t,n.Vo=i,n.on("drag",this.co,this),n.on("dragend",this.Bo,this),this.ZO.addLayer(n),n},vo:function(t){var i=t.Vo;this.ZO.removeLayer(t),this.LO.splice(i,1),this.CO.MO(i,1),this.No(i,-1),t.off("drag",this.co,this).off("dragend",this.Bo,this)},Bo:function(t){var i=t.target;i.setIcon(this.options.icon),this.CO.edited=!0,this.CO.wQ("edit"),this.vO(),this.CO.redraw()},co:function(t){var i=t.target;T.extend(i.Co,i.or),i.bo&&i.bo.sr(this.Mo(i.no,i)),i._o&&i._o.sr(this.Mo(i,i.mo));var e=[];if(i.bo||i._o){for(var s=0,n=this.CO instanceof T.Polygon?this.CO.Ht()[0]:this.CO.Ht();s<n.length&&!n[s].equals(i.PE());s++);var o=s-1<0?0:s-1,t=s+2>n.length?n.length:s+2;e=n.slice(o,t),this.CO instanceof T.Polygon&&2==e.length&&(0==o?e.splice(0,0,n[n.length-1]):n.length==t&&e.splice(n.length-1,n.length-1,n[0]))}else{for(var h,r,a=0;a<this.ZO.getLayers().length;a++)this.ZO.getLayers()[a].bo===i&&(h=this.ZO.getLayers()[a]),this.ZO.getLayers()[a]._o===i&&(r=this.ZO.getLayers()[a]);e=[h.PE(),i.PE(),r.PE()]}this.wo(e)},Yo:function(t){var i={};for(var e in t)i[e]="object"==typeof t[e]?this.Yo(t[e]):t[e];return i},wo:function(t){if(this._guideLine)this._guideLine.Jt(t);else{var i={};i.color=this.CO.options.color,i.lineStyle="dashed",i.weight=this.CO.options.weight,this._guideLine=new T.Polyline(t,i),this.CO.jE.addLayer(this._guideLine)}},vO:function(){this._guideLine&&(this._guideLine.Jt([]),this._guideLine.redraw())},QP:function(t){var i=this.Ko,e=i?4:3,s=t.target;(i?this.CO.ht[0]:this.CO.ht).length<e||(this.vo(s),this.Zo(s.no,s.mo),s.bo&&this.ZO.removeLayer(s.bo),s._o&&this.ZO.removeLayer(s._o),s.no&&s.mo?this.lo(s.no,s.mo):s.no?s.mo||(s.no._o=null):s.mo.bo=null,this.Bo())},No:function(t,i){this.ZO.bE(function(e){e.Vo>t&&(e.Vo+=i)})},lo:function(t,i){var e,s,n,o=this.Mo(t,i),h=this._createMidMarker(o,null,"tdt-div-icon-transparent-border");t._o=i.bo=h,s=function(){var e=i.Vo;h.Vo=e,o.lat=h.PE().lat,o.lng=h.PE().lng,this.CO.MO(e,0,o),this.LO.splice(e,0,h),this.No(e,1),i.Vo++,this.Zo(t,h),this.Zo(h,i),this.CO.wQ("editstart")},n=function(){h.off("dragstart",s,this),h.off("dragend",n,this),this.lo(t,h),this.lo(h,i)},e=function(){s.call(this),n.call(this),this.Bo()},h.on("dragstart",s,this).on("dragend",n,this),this.ZO.addLayer(h)},Zo:function(t,i){t&&(t.mo=i),i&&(i.no=t)},Mo:function(t,i){var e=this.CO.jE,s=e.nq(t.PE()),n=e.nq(i.PE());return e._q(s.aQ(n).FQ(2))}});var initHook=function(){this.jt||(T.jo.Poly&&(this.jt=new T.jo.Poly(this),this.options.editable&&this.jt.enable()),this.on("AQ",function(){this.jt&&this.jt.aE()&&this.jt.oU()}),this.on("remove",function(){this.jt&&this.jt.aE()&&this.jt.Ar()}))};T.Polyline._(initHook),T.Polygon._(initHook),T.Polyline.M({MO:function(t,i,e){var s,n=this.ht;return s=e?n.splice(t,i,e):n.splice(t,i),this.redraw(),s}}),T.Polygon.M({MO:function(t,i,e){var s,n=this.ht[0];return s=e?n.splice(t,i,e):n.splice(t,i),this.redraw(),s}}),T.jo.fo=T.Tool.extend({options:{qP:new T.DivIcon({iconSize:[11,11],className:"tdt-div-icon-black tdt-editing-icon tdt-edit-move"}),WP:new T.DivIcon({iconSize:[11,11],className:"tdt-div-icon-black tdt-editing-icon tdt-edit-resize"})},initialize:function(t,i){this.go=t,T.S.setOptions(this,i)},oU:function(){this.go.jE&&(this.jE=this.go.jE,this.ZO||this.ko(),this.jE.addLayer(this.ZO))},Ar:function(){if(this.go.jE){this.wP(this.EP);for(var t=0,i=this.eP.length;t<i;t++)this.wP(this.eP[t]);this.eP=null,this.jE.removeLayer(this.ZO),delete this.ZO}this.jE=null},Lo:function(){this.ZO.clearLayers(),this.ko()},ko:function(){this.ZO||(this.ZO=new T.LayerGroup),this.RP(),this.rP()},RP:function(){},rP:function(){},mO:function(t,i){var e=new T.Marker(t,{draggable:!0,icon:i,zIndexOffset:1e3});return this.TP(e),this.ZO.addLayer(e),e},TP:function(t){t.on("dragstart",this.tP,this).on("drag",this.co,this).on("dragend",this.YP,this)},wP:function(t){t.off("dragstart",this.tP,this).off("drag",this.co,this).off("dragend",this.YP,this)},tP:function(t){var i=t.target;i.setOpacity(0),this.go.wQ("editstart")},Bo:function(){this.go.edited=!0,this.go.wQ("edit")},co:function(t){var i=t.target,e=i.PE();i===this.EP?this.QE(e):this.UP(e),this.go.redraw()},YP:function(t){var i=t.target;i.setOpacity(1),this.Bo()},QE:function(){},UP:function(){}}),T.jo.Rectangle=T.jo.fo.extend({RP:function(){var t=this.go.getBounds(),i=t.getCenter();this.EP=this.mO(i,this.options.qP)},rP:function(){var t=this.uP();this.eP=[];for(var i=0,e=t.length;i<e;i++)this.eP.push(this.mO(t[i],this.options.WP)),this.eP[i].IP=i},tP:function(t){T.jo.fo.prototype.tP.call(this,t);var i=this.uP(),e=t.target,s=e.IP;this.iP=i[(s+2)%4],this.OP(0,s)},YP:function(t){var i,e,s=t.target;s===this.EP&&(i=this.go.getBounds(),e=i.getCenter(),s.sr(e)),this.OP(1),this.oP(),T.jo.fo.prototype.YP.call(this,t)},QE:function(t){for(var i,e=this.go.Ht(),s=this.go.getBounds(),n=s.getCenter(),o=[],h=0,r=e.length;h<r;h++){o.push([]);for(var a=0,l=e[h].length;a<l;a++)i=[e[h][a].lat-n.lat,e[h][a].lng-n.lng],o[h].push([t.lat+i[0],t.lng+i[1]])}this.go.Jt(o),this.oP()},UP:function(t){var i;this.go.setBounds(T.jq(t,this.iP)),i=this.go.getBounds(),this.EP.sr(i.getCenter())},uP:function(){var t=this.go.getBounds(),i=t.Zq(),e=t.getNorthEast(),s=t.cq(),n=t.getSouthWest();return[i,e,s,n]},OP:function(t){for(var i=0,e=this.eP.length;i<e;i++)this.eP[i].setOpacity(t)},oP:function(){for(var t=this.uP(),i=0,e=this.eP.length;i<e;i++)this.eP[i].sr(t[i])}}),T.Rectangle._(function(){T.jo.Rectangle&&(this.jt=new T.jo.Rectangle(this),this.options.editable&&this.jt.enable())}),T.jo.Circle=T.jo.fo.extend({RP:function(){var t=this.go.PE();this.EP=this.mO(t,this.options.qP)},rP:function(){var t=this.go.PE(),i=this.PP(t);this.eP=[],this.eP.push(this.mO(i,this.options.WP))},PP:function(t){var i=this.jE.nq(t);return this.jE._q([i.x+this.go.EY,i.y])},QE:function(t){var i=this.PP(t);this.eP[0].sr(i),this.go.sr(t)},UP:function(t){var i=this.EP.PE(),e=i.distanceTo(t);this.go.setRadius(e)}}),T.Circle._(function(){T.jo.Circle&&(this.jt=new T.jo.Circle(this),this.options.editable&&this.jt.enable()),this.on("AQ",function(){this.jt&&this.jt.aE()&&this.jt.oU()}),this.on("remove",function(){this.jt&&this.jt.aE()&&this.jt.Ar()})}),T.pP={AP:function(t){for(var i=[],e=0,s=t.length;e<s;e++)i.push(this.aP(t[e]));return i},aP:function(t){return t.pQ()}},T.Po=T.extend(T.Po||{},{Fo:function(t){var i,e,s=t.length,n=0,o=Math.PI/180;if(s>2){for(var h=0;h<s;h++)i=t[h],e=t[(h+1)%s],n+=(e.lng-i.lng)*o*(2+Math.sin(i.lat*o)+Math.sin(e.lat*o));n=6378137*n*6378137/2}return Math.abs(n)},Do:function(t,i){var e;return i?e=t>=1e4?(1e-4*t).toFixed(2)+" ha":t.toFixed(2)+" m&sup2;":(t*=.836127,e=t>=3097600?(t/3097600).toFixed(2)+" mi&sup2;":t>=4840?(t/4840).toFixed(2)+" acres":Math.ceil(t)+" yd&sup2;"),e},oo:function(t,i){var e;return i?e=t>1e3?(t/1e3).toFixed(2)+" km":Math.ceil(t)+" m":(t*=1.09361,e=t>1760?(t/1760).toFixed(2)+" miles":Math.ceil(t)+" yd"),e}}),T.S.extend(T.ut,{SP:function(t,i,e,s){return this.sP(t,e,s)!==this.sP(i,e,s)&&this.sP(t,i,e)!==this.sP(t,i,s)},sP:function(t,i,e){return(e.y-t.y)*(i.x-t.x)>(i.y-t.y)*(e.x-t.x)}}),T.Polyline.M({intersects:function(){var t,i,e,s=this.lt[0],n=s?s.length:0;if(this.DP())return!1;for(t=n-1;t>=3;t--)if(i=s[t-1],e=s[t],this.dP(i,e,t-2))return!0;return!1},qo:function(t,i){return!!this.jE&&this.FP(this.jE.kw(t),i)},FP:function(t,i){var e=this.lt[0],s=e?e.length:0,n=e?e[s-1]:null,o=s-2;return!this.DP(1)&&this.dP(n,t,o,i?1:0)},DP:function(t){var i=this.lt[0],e=i?i.length:0;return e+=t||0,!this.lt[0]||e<=3},dP:function(t,i,e,s){var n,o,h=this.lt[0];s=s||0;for(var r=e;r>s;r--)if(n=h[r-1],o=h[r],T.ut.SP(t,i,n,o))return!0;return!1}}),T.Polygon.M({intersects:function(){var t,i,e,s,n,o=this.lt[0];return!this.DP()&&(!!(t=T.Polyline.prototype.intersects.call(this))||(i=o.length,e=o[0],s=o[i-1],n=i-2,this.dP(s,e,n,1)))}}),T.MarkTool=T.aO.Marker.extend({options:{follow:!1},initialize:function(t,i){this.follow=i&&i.follow?i.follow:this.options.follow,this.options.GO=!1,T.aO.Marker.prototype.initialize.call(this,t,i),this.fP||(this.fP=new T.fT),t.addLayer(this.fP);var e=this.fP;t.on("layerremove",function(t){e&&e.hasLayer(t.layer)&&e.removeLayer(t.layer)})},PY:function(t){T.aO.Marker.prototype.PY.call(this,t)},dO:function(t){this.VO?this.GP=new T.Marker(this.VO.PE(),{icon:this.options.icon}):this.GP=new T.Marker(t.lnglat,{icon:this.options.icon}),T.aO.Feature.prototype.dO.call(this,this.GP),this.fP.addLayer(this.GP),this.wQ("mouseup",{currentLnglat:this.GP.PE(),currentMarker:this.GP,allMarkers:this.getMarkers()})},setPointImage:function(t){var i=T.ur({iconUrl:t,iconSize:[20,30],iconAnchor:[8,29]});this.options.icon=i},clear:function(){this.fP.bE(function(t){t.Qq()})},getMarkers:function(){return this.fP.getLayers()},getMarkControlPoint:function(){return null==this.GP?null:this.GP.PE()},gP:function(){this.fP.bE(function(t){t instanceof T.Marker&&t.AE.enable()})},HP:function(){this.fP.bE(function(t){t instanceof T.Marker&&t.AE.disable()})},enable:function(){this.eU||(T.aO.Marker.prototype.enable.call(this),this.GP=null)},open:function(){this.enable()},close:function(){this.disable()}}),T.RectangleTool=T.aO.Rectangle.extend({initialize:function(t,i){i&&(i.color&&(this.options.sO.color=i.color),i.weight&&(this.options.sO.weight=i.weight),i.opacity&&(this.options.sO.opacity=i.opacity),i.fillColor&&(this.options.sO.fillColor=i.fillColor),i.fillOpacity&&(this.options.sO.fillOpacity=i.fillOpacity),i.lineStyle&&(this.options.sO.lineStyle=i.lineStyle)),T.aO.Rectangle.prototype.initialize.call(this,t,i),this.fP||(this.fP=new T.fT),t.addLayer(this.fP);var e=this.fP;t.on("layerremove",function(t){e&&e.hasLayer(t.layer)&&e.removeLayer(t.layer)})},oU:function(){T.aO.Rectangle.prototype.oU.call(this)},dO:function(){var t=new T.Rectangle(this.go.getBounds(),this.options.sO);T.aO.fo.prototype.dO.call(this,t),this.fP.addLayer(t),this.wQ("draw",{currentBounds:t.getBounds(),currentRectangle:t,allRectangles:this.getRectangles()}),t.redraw()},clear:function(){this.fP.bE(function(t){t.Qq()})},getRectangles:function(){return this.fP.getLayers()},open:function(){this.enable()},close:function(){this.disable()}}),T.CircleTool=T.aO.Circle.extend({initialize:function(t,i){i&&(i.color&&(this.options.sO.color=i.color),i.fillColor&&(this.options.sO.fillColor=i.fillColor),i.weight&&(this.options.sO.weight=i.weight),i.opacity&&(this.options.sO.opacity=i.opacity),i.fillOpacity&&(this.options.sO.fillOpacity=i.fillOpacity),i.lineStyle&&(this.options.sO.lineStyle=i.lineStyle)),T.aO.Circle.prototype.initialize.call(this,t,i),this.fP||(this.fP=new T.fT),t.addLayer(this.fP);var e=this.fP;t.on("layerremove",function(t){e&&e.hasLayer(t.layer)&&e.removeLayer(t.layer)})},dO:function(){var t=new T.Circle(this.lu,this.go.getRadius(),this.options.sO);T.aO.fo.prototype.dO.call(this,t),this.fP.addLayer(t);var i=this.go.getRadius();this.wQ("drawend",{currentCenter:this.lu,currentRadius:i,currentCircle:t,allCircles:this.getCircles()}),t.redraw()},PY:function(t){if(T.aO.Circle.prototype.PY.call(this,t),this.go){var i=this.go.getRadius(),e=new T.Circle(this.lu,this.go.getRadius(),this.options.sO);this.wQ("draw",{currentCenter:this.lu,currentRadius:i,currentCircle:e,allCircles:this.getCircles()})}},getCircles:function(){return this.fP.getLayers()},clear:function(){this.fP.bE(function(t){t.Qq()})},open:function(){this.enable()},close:function(){this.disable()}}),T.PolylineTool=T.aO.Polyline.extend({initialize:function(t,i){i&&(i.color&&(this.options.sO.color=i.color),i.weight&&(this.options.sO.weight=i.weight),i.opacity&&(this.options.sO.opacity=i.opacity),i.lineStyle&&(this.options.sO.lineStyle=i.lineStyle),i.showLabel?(this.to=i.showLabel,this.options.GO=!1):this.options.GO=!0),T.aO.Polyline.prototype.initialize.call(this,t,i),this.options.fO=!0,this.options.icon=T.Lr({className:"tdt-img3"})},oU:function(){T.aO.Polyline.prototype.oU.call(this)},BO:function(){this.ZO.getLayers().length<2&&this.disable(),this.isdb=!1,this.KO=!1,this.Qo()},Ar:function(){var t=this.jE;this.KO&&(this._mouselabel&&this._mouselabel.Qq(),this.ZO.bE(function(i){i.label&&i.label.onRemove(t),i.Qq()})),t.off("mouseup",this.cO,this),this.to||this.ZO.bE(function(t){t.Qq()}),T.aO.Polyline.prototype.Ar.call(this);t.off("dblclick ",this.BO,this)},cO:function(t){function i(t){return function(){0==e.isdb&&e.mu(t)}}this.isdb=!1;var e=this;t.To=T.SQ(t.originalEvent.clientX,t.originalEvent.clientY),window.setTimeout(i(t),50)},dO:function(){this._mouselabel&&this._mouselabel.Qq();var t=new this.Poly(this.CO.Ht(),this.options.sO);t.to=this.to;var i=this.ZO.getLayers().length,e=t.ZO=this.ZO,s=this;if(T.aO.Feature.prototype.dO.call(this,t),this.lO.addLayer(t),e.getLayers().length>0&&(e.bE(function(i){i.label&&i.label.hP("tdt-img1",i,function(){if(index=0,2==e.getLayers().length)return void t.Qq();for(;index<e.getLayers().length&&e.getLayers()[index]!==i;index++);t.MO(index,1),i.label.onRemove(s.jE),e.removeLayer(i),s.JP(t)})}),i>1)){var n=e.getLayers()[i-1];n.label&&(n.label.setBorderLine(.5),n.label.setBorderColor("#CE0000"),n.label.Ow.childNodes[0].innerText=" 总长："+(this.getDistance(t.Ht())/1e3).toFixed(3)+" 公里 ",n.label.hP("tdt-img2",t,function(){t.Qq()}))}this.wQ("draw",{currentLnglats:t.getLngLats(),currentDistance:this.getDistance(t.Ht()),currentPolyline:t,allPolylines:this.getPolylines()}),t.redraw()},JP:function(t){var i=t.ZO.getLayers();for(index=0;index<i.length;index++)if(i[index].label){var e=i[index].label;if("SPAN"==e.Ow.childNodes[0].tagName)if(0==index)e.Ow.childNodes[0].innerText="起点";else{var s=t.Ht().slice(0,index+1);e.Ow.childNodes[0].innerText=(this.getDistance(s)/1e3).toFixed(3)+" 公里",index==i.length-1&&(e.setBorderLine(.5),e.setBorderColor("#CE0000"),e.Ow.childNodes[0].innerText="总长： "+e.Ow.childNodes[0].innerText,e.Ow.childNodes.length<3&&e.hP("tdt-img2",t,function(){t.Qq()}))}}},mO:function(t){var i=T.aO.Polyline.prototype.mO.call(this,t);if(1==this.ZO.getLayers().length&&(T.oQ.ie||!T.oQ.mobile?this._mouselabel=new T.Label({text:this.text?this.text:"双击结束",position:i.getLngLat(),Jo:[10,10],className:"tdt-label1",zIndex:5e3}).addTo(this.jE):(this._mouselabel=new T.Control.PadTipControl({}).addTo(this.jE),this._mouselabel.setContext("长按结束"+(this.options.showLabel?"测距":"画线")),this._mouselabel.setCenter())),this.ZO.getLayers().length>0&&this.to){var e="";if(1==this.ZO.getLayers().length)e="<span>起点<span>";else{var s=this.CO.Ht().slice(0);s.push(i.PE()),e="<span style=\'display: inline-block;text-align:center;margin:0 auto;\'>"+(this.getDistance(s)/1e3).toFixed(3)+" 公里<span>"}if(e){var n=new T.Label({text:e,position:i.getLngLat(),Jo:[10,-15],className:"tdt-label1 ",zIndex:T.aO.Polyline.FO++}).addTo(this.jE);i.label=n}}return i},_O:function(t){T.aO.Polyline.prototype._O.call(this,t),this.wQ("addpoint",{currentLnglats:this.CO.getLngLats(),currentDistance:this.getDistance(this.CO.Ht()),currentPolyline:this.CO,allPolylines:this.getPolylines()})},setTips:function(t){this.text=t},getDistance:function(t){var e=0;for(i=0;i<t.length-1;i++)e+=t[i].distanceTo(t[i+1]);return e+""},endDraw:function(){this.isdb=!1,this.KO=!1,this.Qo()},clear:function(){this.lO.bE(function(t){t.Qq()})},getPolylines:function(){return this.lO.getLayers()},open:function(){this.enable()},close:function(){this.disable()}}),T.PolygonTool=T.aO.Polygon.extend({initialize:function(t,i){i&&(i.color&&(this.options.sO.color=i.color),i.weight&&(this.options.sO.weight=i.weight),i.opacity&&(this.options.sO.opacity=i.opacity),i.fillColor&&(this.options.sO.fillColor=i.fillColor),i.fillOpacity&&(this.options.sO.fillOpacity=i.fillOpacity),i.lineStyle&&(this.options.sO.lineStyle=i.lineStyle),i.showLabel&&(this.to=i.showLabel)),T.aO.Polygon.prototype.initialize.call(this,t,i)},oU:function(){T.aO.Polygon.prototype.oU.call(this),this.jP||(this.jP=new T.fT),this.jE.addLayer(this.jP);var t=this.jP;this.jE.on("layerremove",function(i){t&&t.hasLayer(i.layer)&&i.layer&&i.layer.KP&&(i.layer.KP.Qq(),t.removeLayer(i.layer))}),this.bU=this.jE.bU.eU,this.jE.bU.disable(),this.KO=!0,this.KP=null},Ar:function(){var t=this.jE;T.aO.Polygon.prototype.Ar.call(this),this.KO&&(this._mouselabel&&this._mouselabel.Qq(),this.KP&&this.KP.Qq()),this.ZO.bE(function(i){i.label&&i.label.onRemove(t),i.Qq()}),t.off("mouseup",this.cO,this),this.bU&&this.jE.bU.enable(),t.off("dblclick ",this.BO,this)},BO:function(){this.ZO.getLayers().length<2&&this.disable(),this.isdb=!1,this.KO=!1,this.Qo()},cO:function(t){function i(t){return function(){0==e.isdb&&e.mu(t)}}this.isdb=!1;var e=this;t.To=T.SQ(t.originalEvent.clientX,t.originalEvent.clientY),window.setTimeout(i(t),50)},mO:function(t){var i=new T.Marker(t,{icon:this.options.icon,zIndexOffset:T.aO.Polyline.FO++});if(i.setOpacity(0),this.ZO.addLayer(i),1==this.ZO.getLayers().length&&(T.oQ.ie||!T.oQ.mobile?this._mouselabel=new T.Label({text:this.text?this.text:"双击结束",position:i.getLngLat(),Jo:[10,10],className:"tdt-label1 ",zIndex:4999}).addTo(this.jE):(this._mouselabel=new T.Control.PadTipControl({}).addTo(this.jE),this._mouselabel.setContext("长按结束"+(this.options.showLabel?"测面":"画面")),this._mouselabel.setCenter())),this.to){var e=this.ZO.getLayers().length,s=this.CO.Ht()[0].slice(0);s.push(i.getLngLat());var n=this.getArea(s),o=(n/1e6).toFixed(3);0==o?o=n.toFixed(3)+"平方米":o+="平方千米",3==e&&(this.KP=new T.Label({text:"<span style=\'display: inline-block;text-align:center;margin:0 auto;\'>"+o+" </span>",position:i.getLngLat(),Jo:[10,-15],className:"tdt-label1 ",zIndex:T.aO.Polyline.FO++}).addTo(this.jE)),e>3&&(this.KP.Ow.childNodes[0].innerText=o,this.KP.sr(i.getLngLat()))}return i},dO:function(){var t=new this.Poly(this.CO.Ht(),this.options.sO);if(t.to=this.to,T.aO.Feature.prototype.dO.call(this,t),this.jP.addLayer(t),this.wQ("draw",{currentLnglats:t.getLngLats()[0],currentArea:this.getArea(t.Ht()[0]),currentPolygon:t,allPolygons:this.getPolygons()}),this._mouselabel&&this._mouselabel.Qq(),this.to&&this.KP){this.KP.setBorderLine(.5),this.KP.setBorderColor("#CE0000"),this.KP.Ow.childNodes[0].innerText="总面积："+this.KP.Ow.childNodes[0].innerText;t.KP=this.KP,this.KP.hP("tdt-img2",t,function(){t.Qq()})}t.redraw()},_O:function(t){T.aO.Polygon.prototype._O.call(this,t),this.wQ("addpoint",{currentPolygon:this.CO,currentLnglats:this.CO.getLngLats()[0],currentArea:this.getArea(this.CO.Ht()),allPolygons:this.getPolygons()})},setTips:function(t){this.text=t},getPolygons:function(){return this.jP.getLayers()},getArea:function(t){return T.Po.Fo(t)},endDraw:function(){this.isdb=!1,this.KO=!1,this.Qo()},clear:function(){this.jP.bE(function(t){t.Qq()})},open:function(){this.enable()},close:function(){this.disable()}}),T.Control.PadTipControl=T.Control.extend({initialize:function(t){this.setOptions(t)},onAdd:function(t){this.map=t;var i=this.div=T._Q.s("a","tdt-noDataTips"),e=this.left=T._Q.s("a","tdt-tabtop_left",i);e.style.color="#FFFFFF";var s=T._Q.s("a","tdt-tabtop_rt",i);return self=this,s.onclick=function(){t.removeControl(self)},i},setCenter:function(){this.div.style.marginRight=(this.map.Ow.offsetWidth-this.div.offsetWidth)/2+"px"},setContext:function(t){this.left.innerHTML=t},onRemove:function(t){var i=this.div.parentNode;i&&(i.removeChild(this.div),this.map=null,this.div=null)}}),T.labelVersion="0.2.2-dev",T.Label=T.Overlay.extend({includes:T.iQ.OQ,options:{type:1,className:"",JO:!1,kP:"right",LP:!1,Jo:[12,-15],offset:new T.Point(0,0),opacity:1,Nr:!1},initialize:function(t,i){if(T.setOptions(this,t),this.br=i,this.lP=T.oQ.any3d&&this.options.Nr,this.ZP=!1,t&&(t.text&&this.setContent(t.text),t.position&&this.setLngLat(t.position),this.options.zIndex&&(this.Jr=this.options.zIndex),t.offset&&t.offset instanceof T.Point)){this.options.offset=t.offset;var e=this.options.offset;this.options.Jo=[e.x+12,e.y-15]}this.options.JO=!0,this.options.LP=!0},onAdd:function(t){this.jE=t,this.fu=this.options.hE?t.aw[this.options.hE]:this.br instanceof T.Marker?t.aw.markerPane:t.aw.popupPane,this.Ow||this.DW(),this.fu.appendChild(this.Ow),this.hr(),this.Oe(),this.setOpacity(this.options.opacity),t.on("moveend",this.TE,this).on("viewreset",this.CP,this),this.lP&&t.on("Ge",this.VP,this),T.oQ.touch&&!this.options.LP&&(T.oq.on(this.Ow,"click",this.close,this),t.on("click",this.close,this))},onRemove:function(t){this.fu.removeChild(this.Ow),t.off({Ge:this.VP,moveend:this.TE,viewreset:this.CP},this),this.cP(),this.wQ("remove",{}),this.jE=null},sr:function(t){return this.or=T.fq(t),this.jE&&this.WT(),this},setContent:function(t){return this.BP=this.ET,this.ET=t,this.eT(),this},getElement:function(){return this.Ow},close:function(){var t=this.jE;t&&(T.oQ.touch&&!this.options.LP&&(T.oq.off(this.Ow,"click",this.close),t.off("click",this.close,this)),t.removeLayer(this))},vP:function(t){this.Jr=t,this.Ow&&this.Jr&&(this.Ow.style.zIndex=t)},setOpacity:function(t){this.options.opacity=t,this.Ow&&T._Q.setOpacity(this.Ow,t)},DW:function(){this.options.className?this.Ow=T._Q.s("div",this.options.className+" tdt-zoom-animated"):this.Ow=T._Q.s("div","tdt-label  tdt-zoom-animated"),this.vP(this.Jr)},Oe:function(){this.jE&&(this.Ow.style.visibility="hidden",this.eT(),this.WT(),this.Ow.style.visibility="")},eT:function(){this.ET&&this.jE&&this.NP!==this.ET&&"string"==typeof this.ET&&(this.Ow.innerHTML=this.ET,this.NP=this.ET,this._labelWidth=this.Ow.offsetWidth)},WT:function(){var t=this.jE.kw(this.or);this.bP(t)},bP:function(t){var i=this.jE,e=this.Ow,s=i.BW(i.getCenter()),n=i.Zw(t),o=this.options.kP,h=this._labelWidth,r=T.SQ(this.options.Jo);"right"===o||"auto"===o&&n.x<s.x?(T._Q.Rq(e,"tdt-label-right"),T._Q.Tq(e,"tdt-label-left"),t=t.AQ(r)):(T._Q.Rq(e,"tdt-label-left"),T._Q.Tq(e,"tdt-label-right"),t=t.AQ(T.SQ(-r.x-h,r.y))),T._Q.setPosition(e,t)},VP:function(t){var i=this.jE.DE(this.or,t.zoom,t.center).hQ();this.bP(i)},TE:function(){this.lP&&"auto"!==this.options.kP||this.WT()},CP:function(t){t&&t.hard&&this.Oe()},hr:function(){var t=this.Ow,i=["dblclick","mousedown","mouseover","mouseout","contextmenu"];T._Q.Rq(t,"tdt-clickable"),T.oq.on(t,"click",this.MP,this);for(var e=0;e<i.length;e++)T.oq.on(t,i[e],this.nP,this)},cP:function(){var t=this.Ow,i=["dblclick","mousedown","mouseover","mouseout","contextmenu"];T._Q.Tq(t,"tdt-clickable"),T.oq.off(t,"click",this.MP,this);for(var e=0;e<i.length;e++)T.oq.off(t,i[e],this.nP,this)},MP:function(t){this.IQ(t.type)&&T.oq.stopPropagation(t);var i=this.jE.BW(this.or);this.wQ(t.type,{lnglat:this.or,containerPoint:i})},nP:function(t){var i=this.jE.BW(this.or);this.wQ(t.type,{lnglat:this.or,containerPoint:i}),"contextmenu"===t.type&&this.IQ(t.type)&&T.oq.preventDefault(t),"mousedown"!==t.type?T.oq.stopPropagation(t):T.oq.preventDefault(t)},getType:function(){return 1},getLngLat:function(){return this.or},setLngLat:function(t){return this.or=T.fq(t),this.jE&&this.WT(),this},setOffset:function(t){return t&&t instanceof T.Point&&(this.options.offset=t,this.options.Jo=[t.x+12,t.y-15]),this.jE&&this.WT(),this},getOffset:function(){return this.offset_Point},setLabel:function(t){this.setContent(t)},getLabel:function(){this.getContent()},setTitle:function(t){return this._P=t,this.Ow||this.DW(),this.Ow.title=this._P,this},getTitle:function(){return this._P},setZindex:function(t){this.vP(t)},getFontSize:function(t){return this.Ow.style.fontSize},setFontSize:function(t){return this._FontSize=t,this.Ow||this.DW(),this.Ow.style.fontSize=this._FontSize+"pt",this},setFontColor:function(t){return this.mP=t,this.Ow||this.DW(),this.Ow.style.color=this.mP,this},getFontColor:function(){return this.Ow.style.color},setBackgroundColor:function(t){return t||(t="transparent"),this.Qp=t,this.Ow||this.DW(),this.Ow.style.backgroundColor=this.Qp,this},getBackgroundColor:function(){return this.Ow.style.backgroundColor},setBorderLine:function(t){return this.qp=t,this.Ow||this.DW(),this.Ow.style.borderWidth=this.qp+"pt",this.Ow.style.boxShadow="0px 0px 0px 0px",this},getBorderLine:function(){return this.Ow.style.borderWidth},setBoxShadow:function(t){return this.Ow.style.boxShadow=t,this},getBoxShadow:function(){return this.Ow.style.boxShadow},setBorderColor:function(t){return t||(t="transparent"),this.mP=t,this.Ow||this.DW(),this.Ow.style.borderColor=this.mP,this},getBorderColor:function(){return this.Ow.style.borderColor},setOpacity:function(t){this.Wp=t,this.Ow&&T._Q.setOpacity(this.Ow,this.Wp)},getOpacity:function(){return this.Wp},hP:function(t,i,e){var s=this.Ow,n=T._Q.s("a",t,s);T.oq.on(n,"click",e)}}),T.wp={showLabel:function(){return this.label&&this.jE&&(this.label.sr(this.or),this.jE.showLabel(this.label)),this},hideLabel:function(){return this.label&&this.label.close(),this},Ep:function(t){this.ep!==t&&(this.ep=t,t?(this.Rp(),this.showLabel()):(this.rp(),this.hideLabel()))},Tp:function(t,i){var e=this.options.icon?this.options.icon.options.tp:this.options.tp,s=T.SQ(e)||T.SQ(0,0);return s=s.AQ(T.Label.prototype.options.Jo),i&&i.Jo&&(s=s.AQ(i.Jo)),i=T.S.extend({Jo:s},i),this.ep=i.LP,this.label||(this.ep||this.rp(),this.on("remove",this.hideLabel,this).on("move",this.Yp,this).on("AQ",this.Up,this),this.up=!0),this.label=new T.Label(i,this).setContent(t),this},Ip:function(){return this.label&&(this.hideLabel(),this.label=null,this.up&&(this.ep||this.Rp(),this.off("remove",this.hideLabel,this).off("move",this.Yp,this).off("AQ",this.Up,this)),this.up=!1),this},ip:function(t){this.label&&this.label.setContent(t)},getLabel:function(){return this.label},Up:function(){this.ep&&this.showLabel()},rp:function(){this.on("mouseover",this.showLabel,this).on("mouseout",this.hideLabel,this),T.oQ.touch&&this.on("click",this.showLabel,this)},Rp:function(){this.off("mouseover",this.showLabel,this).off("mouseout",this.hideLabel,this),T.oQ.touch&&this.off("click",this.showLabel,this)},Yp:function(t){this.label.sr(t.KT)}},T.Icon.Default.n({tp:new T.Point(9,-20)}),T.Marker.n({icon:new T.Icon.Default}),T.Marker.M(T.wp),T.Marker.M({Op:T.Marker.prototype.se,se:function(t){var i=this.Jr+t;this.Op(t),this.label&&this.label.vP(i)},op:T.Marker.prototype.setOpacity,setOpacity:function(t,i){this.options.Pp=i,this.op(t)},pp:T.Marker.prototype.Se,Se:function(){var t=0===this.options.opacity?0:1;this.pp(),this.label&&this.label.setOpacity(this.options.Pp?this.options.opacity:t)},Ap:T.Marker.prototype.sr,sr:function(t){return this.label&&!this.ep&&this.hideLabel(),this.Ap(t)}}),T.wY.n({tp:new T.Point(0,0)}),T.wY.M(T.wp),T.jT.M({Tp:function(t,i){return this.label&&this.label.options===i||(this.label=new T.Label(i,this)),this.label.setContent(t),this.ap||(this.on("mouseover",this.to,this).on("mousemove",this.Yp,this).on("mouseout remove",this.Sp,this),T.oQ.touch&&this.on("click",this.to,this),this.ap=!0),this},Ip:function(){return this.label&&(this.Sp(),this.label=null,this.ap=!1,this.off("mouseover",this.to,this).off("mousemove",this.Yp,this).off("mouseout remove",this.Sp,this)),this},ip:function(t){this.label&&this.label.setContent(t)},to:function(t){this.label.sr(t.KT),this.jE.showLabel(this.label)},Yp:function(t){this.label.sr(t.KT)},Sp:function(){this.label.close()}}),T.Map.M({showLabel:function(t){return this.addLayer(t)}}),T.fT.M({clearLayers:function(){return this.Ip(),this.bE(this.removeLayer,this),this},Tp:function(t,i){return this.kT("Tp",t,i)},Ip:function(){return this.kT("Ip")},ip:function(t){this.kT("ip",t)}}),T.Control.sp=T.Control.extend({options:{position:"bottomright",Dp:!1,dp:-4,Fp:!1,fp:!1,Nr:!1,Gp:!1,gp:!1,width:140,height:140,Hp:18,hp:18,Jp:{weight:2,JO:!1,opacity:.4,fillOpacity:.2,color:"#0066cc",fillColor:"blue"},jp:{weight:2,JO:!1,opacity:0,fillOpacity:0,color:"#0066cc",fillColor:"blue"},Kp:{kp:"隐藏",Lp:"打开"},mapOptions:{}},initialize:function(t){T.S.setOptions(this,t),this.options.Jp.JO=!1,this.options.jp.JO=!1,this.Dp=!0},onAdd:function(t){this.lp=t,this._containerBorder=T._Q.s("div","tdt-control-minimap-edge"),this._minimapContainer=this.Ow=T._Q.s("div","tdt-control-minimap"),this._containerBorder.appendChild(this.Ow),T.oq.iT(this._containerBorder),T.oq.on(this._containerBorder,"mousewheel",T.oq.stopPropagation);var i=null;if(this.lp.getMapType()){for(var e=this.lp.getMapType().getLayers(),s=[],n=0;n<e.length;n++){var o=new T.TileLayer("",e[n].options);o.getTileUrl=e[n].getTileUrl,s.push(o)}i=new T.MapType(s,this.lp.getMapType().getName())}var h={cE:!1,AE:!this.options.fp,FI:!1,_U:!1,bU:!1,Nr:!1,Gp:this.options.Gp,Ju:this.options.fp?"center":!this.Zp(),SE:!this.Zp(),IW:t.options.IW,layers:i};return h=T.S.extend(this.options.mapOptions,h),this.Cp=new T.Map(this.Ow,h),this.lp.on("maptypechange",this.mapTypeChange,this),this.Vp=!1,this.cp=!1,this.Bp=!1,this.vp=this.options.gp,this.options.Dp&&this.Np(),this.Cp.sE(T.S.D(function(){this.bp=T.WY(this.lp.getBounds(),this.options.Jp).addTo(this.Cp),renderRectoptions={MW:30},this.renderRect=new T.SVG(renderRectoptions),this.options.jp.iW=this.renderRect,this.Mp=T.WY(this.lp.getBounds(),this.options.jp).addTo(this.Cp),this.lp.on("moveend",this.np,this),this.lp.on("move",this._p,this),this.Cp.on("movestart",this.mp,this),this.Cp.on("move",this.QA,this),this.Cp.on("moveend",this.qA,this),this.Cp.on("dblclick",this._onMiniMapDblclick,this),T.oQ.ie&&(T.oq.on(this.Cp.getContainer(),"mousedown",function(){this.Cp.getContainer().setCapture()},this),T.oq.on(this.Cp.getContainer(),"mouseup",function(){this.Cp.getContainer().releaseCapture()},this))},this)),this._containerBorder},mapTypeChange:function(t){var i=null;if(t.mapType){for(var e=t.mapType.getLayers(),s=[],n=0;n<e.length;n++){var o=new T.TileLayer("",e[n].options);o.getTileUrl=e[n].getTileUrl,s.push(o)}i=new T.MapType(s,this.lp.getMapType().getName()),this.Cp.setMapType(i)}},addTo:function(t){T.Control.prototype.addTo.call(this,t);var i=this.options.fp||this.lp.getCenter();return i&&this.Cp.gW(i,this.WA(!0)),this.wA(this.EA()),this},onRemove:function(t){this.lp.off("moveend",this.np,this),this.lp.off("move",this._p,this),this.Cp.off("moveend",this.qA,this)},Np:function(){this.eA=this.options.Dp?this.AI("",this.options.Kp.kp,"tdt-control-minimap-toggle-display tdt-control-minimap-toggle-display-"+this.options.position,this._minimapContainer,this.RA,this):void 0,this.eA.style.width=this.options.Hp+"px",this.eA.style.height=this.options.hp+"px"},AI:function(t,i,e,s,n,o){var h=T._Q.s("a",e,s);h.innerHTML=t,h.href="#",h.title=i;var r=T.oq.stopPropagation;return T.oq.on(h,"click",r).on(h,"mousedown",r).on(h,"dblclick",r).on(h,"click",T.oq.preventDefault).on(h,"click",n,o),h},RA:function(){this.Bp=!0,this.vp?(this.TA(),this.eA.title=this.options.Kp.kp):(this.rA(),this.eA.title=this.options.Kp.Lp)},wA:function(t){t!==this.vp&&(this.vp?this.TA():this.rA())},rA:function(){this.options.Dp?(this._minimapContainer.style.width=this.options.Hp+"px",this._minimapContainer.style.height=this.options.hp+"px",this.eA.className+=" minimized-"+this.options.position):(this.Ow.style.display="none",this._containerBorder.style.display="none"),this.vp=!0},TA:function(){this.options.Dp?(this._minimapContainer.style.width=this.options.width+"px",this._minimapContainer.style.height=this.options.height+"px",this.eA.className=this.eA.className.replace("minimized-"+this.options.position,"")):(this.Ow.style.display="block",this._containerBorder.style.display="block"),this.vp=!1},np:function(t){if(this.cp)this.cp=!1;else{var i=this.options.fp||this.lp.getCenter();this.Vp=!0,this.Cp.gW(i,this.WA(!0)),this.wA(this.EA())}this.bp.setBounds(this.lp.getBounds())},_p:function(t){this.bp.setBounds(this.lp.getBounds())},mp:function(t){if(!this.options.fp){var i=this.bp.getBounds(),e=this.Cp.BW(i.getSouthWest()),s=this.Cp.BW(i.getNorthEast()),n=this.Cp.BW(i.getCenter()),o=Math.abs(i.getSouthWest().lng-i.getNorthEast().lng),h=Math.abs(i.getSouthWest().lat-i.getNorthEast().lat);this._lastAimingRectPosition={sw:e,ne:s,ce:n,coWidth:o,coHeight:h}}},_onMiniMapDblclick:function(t){this.Cp.panTo(t.lnglat)},QA:function(t){if(!this.options.fp&&!this.Vp&&this._lastAimingRectPosition){var i=this.Cp.getCenter().lng+this._lastAimingRectPosition.coWidth/2,e=this.Cp.getCenter().lng-this._lastAimingRectPosition.coWidth/2,s=this.Cp.getCenter().lat+this._lastAimingRectPosition.coHeight/2,n=this.Cp.getCenter().lat-this._lastAimingRectPosition.coHeight/2;this.Mp.setBounds(new T.Kq(new T.dq(n,e),new T.dq(s,i))),this.bp.setStyle({opacity:.2,fillOpacity:.2}),this.Mp.setStyle({opacity:.6,fillOpacity:.3})}},qA:function(t){this.Vp?this.Vp=!1:(this.cp=!0,this.lp.gW(this.Cp.getCenter(),this.WA(!1)),this.Mp.setStyle({opacity:0,fillOpacity:0}),this.bp.setStyle({opacity:.4,fillOpacity:.2}))},Zp:function(){var t=this.options.Fp;return this.tA(t)&&this.YA(t)},WA:function(t){if(this.Zp())return t?this.options.Fp:this.lp.getZoom();if(t)return this.lp.getZoom()+this.options.dp;var i,e=this.Cp.getZoom()-this.lp.getZoom(),s=this.Cp.getZoom()-this.options.dp;return e>this.options.dp&&this.lp.getZoom()<this.Cp.getMinZoom()-this.options.dp?this.Cp.getZoom()>this._lastMiniMapZoom?(i=this.lp.getZoom()+1,this.Cp.setZoom(this.Cp.getZoom()-1)):i=this.lp.getZoom():i=s,this._lastMiniMapZoom=this.Cp.getZoom(),i},EA:function(){return this.Bp?this.vp:this.options.Gp?!!this.lp.getBounds().contains(this.Cp.getBounds()):this.vp},YA:function(t){return"number"==typeof t},tA:function(t){return"undefined"!=typeof t}}),T.Map.n({UA:!1}),T.Map._(function(){this.options.UA&&(this.UA=(new MiniMap).addTo(this))}),T.Control.OverviewMap=T.Control.sp.extend({includes:T.iQ.OQ,options:{anchor:"TMAP_ANCHOR_BOTTOM_RIGH",size:new T.SQ(150,150),isOpen:!1},initialize:function(t){t&&(t.size&&(this.options.width=t.size.x,this.options.height=t.size.y),this.ZP=t.isOpen,this.vp=t.isOpen),this.options.Dp=!0,T.Control.sp.prototype.initialize.call(this,t)},onAdd:function(t){var i=T.Control.sp.prototype.onAdd.call(this,t);this.ZP?this.TA():this.rA();var e=T.Icon.Default.imagePath;return this.setButtonImage(e+"/Open.png",e+"/Close.png"),i},setButtonImage:function(t,i){this.ButtonImageUrl="url("+t+")",this.ButtonImageReverseUrl="url("+i+")",this.ZP?T.oQ.ielt9&&(this.eA.style.backgroundImage=this.ButtonImageUrl):T.oQ.ielt9&&(this.eA.style.backgroundImage=this.ButtonImageReverseUrl),T.oQ.ielt9||(this.eA.style.backgroundImage=this.ButtonImageUrl)},_setButtonImage:function(t){return this.eA.style.backgroundImage="url("+t+")",this},setBorderColor:function(t){this._minimapContainer.style.borderColor=t},setBorderWidth:function(t){this._minimapContainer.style.borderWidth=t+"px"},setRectBorderColor:function(t){this.options.Jp.color=t,this.options.Jp.fillColor=t,this.bp.setStyle(this.options.Jp)},setRectBackColor:function(t){this.options.jp.color=t,this.options.jp.fillColor=t,this.Mp.setStyle(this.options.jp)},RA:function(){T.Control.sp.prototype.RA.call(this),this.wQ("viewchange",{isOpen:!this.vp}),this.ZP=!this.vp,this.ZP?this.ButtonImageUrl&&(this.eA.style.backgroundImage=this.ButtonImageUrl):this.ButtonImageReverseUrl&&(this.eA.style.backgroundImage=this.ButtonImageReverseUrl)},changeView:function(){this.RA()},isOpen:function(){return!this.vp},getMiniMap:function(){return this.Cp}}),T.uA=T.fT.extend({options:{IA:80,iA:null,OA:!1,oA:!0,PA:!0,pA:!1,AA:null,aA:!0,Tw:!1,SA:!1,sA:1,DA:{weight:1.5,color:"#222",opacity:.5},dA:!1,FA:200,fA:50,GA:null,gA:{}},initialize:function(t){T.S.setOptions(this,t),this.options.iA||this.setStyles(this.options.styles,!0),this.HA=T.lT(),this.HA.TQ(this),this.hA=T.lT(),this.hA.TQ(this),this.JA=0,this.jA=[],this.KA=[],this.kA=null,this.LA=[];var i=T._Q.Iq&&this.options.Tw;T.extend(this,i?this.lA:this.ZA),this.CA=i?T.VA:T.cA},addLayer:function(t){if(t instanceof T.LayerGroup)return this.addLayers([t]);if(!t.PE)return this.hA.addLayer(t),this;if(!this.jE)return this.jA.push(t),this;if(this.hasLayer(t))return this;this.BA&&this.BA(),this.Wi(t,this.vA),this.bA.NA();var i=t,e=this.jE.getZoom();if(t.MA)for(;i.MA.fW>=e;)i=i.MA;return this.kA.contains(i.PE())&&(this.options.SA?this.nA(t,i):this._A(t,i)),this._viewChangeEndNotClustering(),this},removeLayer:function(t){return t instanceof T.LayerGroup?this.removeLayers([t]):t.PE?this.jE?t.MA?(this.BA&&(this.BA(),this.Qa(t)),this.qa(t,!0),this.bA.NA(),t.off("move",this.Wa,this),this.HA.hasLayer(t)&&(this.HA.removeLayer(t),t.wa&&t.wa()),this):this:(!this.mA(this.jA,t)&&this.hasLayer(t)&&this.KA.push(t),this):(this.hA.removeLayer(t),this)},addLayers:function(t){if(!T.S.l(t))return this.addLayer(t);var i,e=this.HA,s=this.hA,n=this.options.dA,o=this.options.FA,h=this.options.GA,r=t.length,a=0,l=!0;if(this.jE){var u=(new Date).getTime(),c=T.D(function(){for(var f=(new Date).getTime();a<r;a++){if(n&&a%200===0){var d=(new Date).getTime()-f;if(d>o)break}if(i=t[a],i instanceof T.LayerGroup)l&&(t=t.slice(),l=!1),this.Ea(i,t),r=t.length;else if(i.PE){if(!this.hasLayer(i)&&(this.Wi(i,this.vA),i.MA&&2===i.MA.ea())){var p=i.MA.Ra(),m=p[0]===i?p[1]:p[0];e.removeLayer(m)}}else s.addLayer(i)}h&&h(a,r,(new Date).getTime()-u),a===r?(this.bA.NA(),this.HA.bE(function(t){t instanceof T.VA&&t.ra&&t.Ta()}),this.bA.ta(null,this.fW,this.kA)):setTimeout(c,this.options.fA)},this);c(),this._viewChangeEndNotClustering()}else for(var f=this.jA;a<r;a++)i=t[a],i instanceof T.LayerGroup?(l&&(t=t.slice(),l=!1),this.Ea(i,t),r=t.length):i.PE?this.hasLayer(i)||f.push(i):s.addLayer(i);return this},removeLayers:function(t){var i,e,s=t.length,n=this.HA,o=this.hA,h=!0;if(!this.jE){for(i=0;i<s;i++)e=t[i],e instanceof T.LayerGroup?(h&&(t=t.slice(),h=!1),this.Ea(e,t),s=t.length):(this.mA(this.jA,e),o.removeLayer(e),this.hasLayer(e)&&this.KA.push(e));return this}if(this.BA){this.BA();var r=t.slice(),a=s;for(i=0;i<a;i++)e=r[i],e instanceof T.LayerGroup?(this.Ea(e,r),a=r.length):this.Qa(e)}for(i=0;i<s;i++)e=t[i],e instanceof T.LayerGroup?(h&&(t=t.slice(),h=!1),this.Ea(e,t),s=t.length):e.MA?(this.qa(e,!0,!0),n.hasLayer(e)&&(n.removeLayer(e),e.wa&&e.wa())):o.removeLayer(e);return this.bA.NA(),this.bA.ta(null,this.fW,this.kA),n.bE(function(t){t instanceof T.VA&&t.Ta()}),this},clearLayers:function(){return this.jE||(this.jA=[],delete this.Ya,delete this.Ua),this.ua&&this.ua(),this.HA.clearLayers(),this.hA.clearLayers(),this.bE(function(t){t.off("move",this.Wa,this),delete t.MA}),this.jE&&this.Ia(),this},getBounds:function(){var t=new T.Kq;this.bA&&t.extend(this.bA.Qr);for(var i=this.jA.length-1;i>=0;i--)t.extend(this.jA[i].PE());return t.extend(this.hA.getBounds()),t},bE:function(t,i){var e,s=this.jA.slice(),n=this.KA;for(this.bA&&this.bA.Ra(s),e=s.length-1;e>=0;e--)n.indexOf(s[e])===-1&&t.call(i,s[e]);this.hA.bE(t,i)},getLayers:function(){var t=[];return this.bE(function(i){t.push(i)}),t},getLayer:function(t){var i=null;return t=parseInt(t,10),this.bE(function(e){T.d(e)===t&&(i=e)}),i},hasLayer:function(t){if(!t)return!1;var i,e=this.jA;for(i=e.length-1;i>=0;i--)if(e[i]===t)return!0;for(e=this.KA,i=e.length-1;i>=0;i--)if(e[i]===t)return!1;return!(!t.MA||t.MA.ia!==this)||this.hA.hasLayer(t)},Oa:function(t,i){"function"!=typeof i&&(i=function(){});var e=function(){!t.Fr&&!t.MA.Fr||this.JA||(this.jE.off("moveend",e,this),this.off("animationend",e,this),t.Fr?i():t.MA.Fr&&(this.rQ("spiderfied",i,this),t.MA.oa()))};if(t.Fr&&this.jE.getBounds().contains(t.PE()))i();else if(t.MA.fW<this.jE.getZoom())this.jE.on("moveend",e,this),this.jE.panTo(t.PE());else{var s=function(){this.jE.off("movestart",s,this),s=null};this.jE.on("movestart",s,this),this.jE.on("moveend",e,this),this.on("animationend",e,this),t.MA.Pa(),s&&e.call(this)}},onAdd:function(t){this.jE=t;var i,e,s;if(!isFinite(this.jE.getMaxZoom()))throw"Map has no maxZoom specified";for(this.HA.addTo(t),this.hA.addTo(t),this.Ya||this.Ia(),this.pa=t.options.IW.projection.QW,i=0,e=this.KA.length;i<e;i++)s=this.KA[i],this.qa(s,!0);this.KA=[],this.fW=this.jE.getZoom(),this.kA=this.Aa(),this.jE.on("zoomend",this.aa,this),this.jE.on("moveend",this.mw,this),this.Sa&&this.Sa(),this.sa(),e=this.jA,this.jA=[],this.addLayers(e)},onRemove:function(t){t.off("zoomend",this.aa,this),t.off("moveend",this.mw,this),this.Da(),this.jE.ow.className=this.jE.ow.className.replace(" tdt-cluster-anim",""),this.da&&this.da(),delete this.pa,this.Fa(),this.HA.Qq(),this.hA.Qq(),this.HA.clearLayers(),this.jE=null},fa:function(t){for(var i=t;i&&!i.Fr;)i=i.MA;return i||null},mA:function(t,i){for(var e=t.length-1;e>=0;e--)if(t[e]===i)return t.splice(e,1),!0},Ga:function(t,i){for(var e=this.jE,s=this.Ua;i>=0&&s[i].ga(t,e.nq(t.PE(),i));i--);},Wa:function(t){this.Ha||(t.target.or=t.ha,this.removeLayer(t.target),t.target.or=t.KT,this.addLayer(t.target))},qa:function(t,i,e){var s=this.Ya,n=this.Ua,o=this.HA,h=this.jE;i&&this.Ga(t,this.vA);var r,a=t.MA,l=a.LO;for(this.mA(l,t);a&&(a.Ja--,a.ja=!0,!(a.fW<0));)i&&a.Ja<=1?(r=a.LO[0]===t?a.LO[1]:a.LO[0],s[a.fW].ga(a,h.nq(a.Ka,a.fW)),n[a.fW].ka(r,h.nq(r.PE(),a.fW)),this.mA(a.MA.La,a),a.MA.LO.push(r),r.MA=a.MA,a.Fr&&(o.removeLayer(a),e||o.addLayer(r))):e&&a.Fr||a.Ta(),a=a.MA;delete t.MA},la:function(t,i){for(;i;){if(t===i)return!0;i=i.parentNode}return!1},wQ:function(t,i,e){if(i&&i.layer instanceof T.VA){if(i.originalEvent&&this.la(i.layer.Fr,i.originalEvent.relatedTarget))return;t="cluster"+t}T.fT.prototype.wQ.call(this,t,i,e)},EQ:function(t,i){return T.fT.prototype.EQ.call(this,t,i)||T.fT.prototype.EQ.call(this,"cluster"+t,i)},Za:function(t){var i=t.ea(),e=" marker-cluster-";return e+=i<10?"small1":i<100?"medium1":"large1",new T.DivIcon({html:"<div><span>"+i+"</span></div>",className:"marker-cluster"+e,iconSize:new T.Point(40,40)})},sa:function(){var t=this.jE,i=this.options.OA,e=this.options.oA,s=this.options.PA;(i||s)&&this.on("clusterclick",this.Ca,this),e&&(this.on("clustermouseover",this.Va,this),this.on("clustermouseout",this.Fa,this),t.on("zoomend",this.Fa,this))},Ca:function(t){var i=t.layer,e=i;return 1===e.La.length?void this.jE.centerAndZoom(e.or,this.jE.getZoom()+1):(e.fW===this.vA&&e.Ja===i.Ja&&this.options.OA?i.oa():this.options.PA&&i.Pa(),void(t.originalEvent&&13===t.originalEvent.keyCode&&this.jE.Ow.focus()))},Va:function(t){var i=this.jE;this.JA||(this.ca&&i.removeLayer(this.ca),t.layer.ea()>2&&t.layer!==this.Ba&&(this.ca=new T.Polygon(t.layer.va(),this.options.gA),i.addLayer(this.ca)))},Fa:function(){this.ca&&(this.jE.removeLayer(this.ca),this.ca=null)},Da:function(){var t=this.options.OA,i=this.options.oA,e=this.options.PA,s=this.jE;(t||e)&&this.off("clusterclick",this.Ca,this),i&&(this.off("clustermouseover",this.Va,this),this.off("clustermouseout",this.Fa,this),s.off("zoomend",this.Fa,this))},aa:function(){this.jE&&(this.Na(),this.fW=Math.round(this.jE.fW),this.kA=this.Aa())},mw:function(){if(!this.JA){var t=this.Aa();this.bA.ba(this.kA,this.fW,t),this.bA.ta(null,Math.round(this.jE.fW),t),this.kA=t}},Ia:function(){var t=this.jE.getMaxZoom(),i=this.options.IA,e=i;"function"!=typeof i&&(e=function(){return i}),this.options.AA&&(t=this.options.AA-1),this.vA=t,this.Ya={},this.Ua={};for(var s=t;s>=0;s--)this.Ya[s]=new T.Ma(e(s)),this.Ua[s]=new T.Ma(e(s));this.bA=new this.CA(this,-1)},Wi:function(t,i){var e,s,n=this.Ya,o=this.Ua;for(this.options.pA&&this.na(t),t.on("move",this.Wa,this);i>=0;i--){e=this.jE.nq(t.PE(),i);var h=n[i]._a(e);if(h)return h.ma(t),void(t.MA=h);if(h=o[i]._a(e)){var r=h.MA;r&&this.qa(h,!1);var a=new this.CA(this,i,h,t);n[i].ka(a,this.jE.nq(a.Ka,i)),h.MA=a,t.MA=a;var l=a;for(s=i-1;s>r.fW;s--)l=new this.CA(this,s,l),n[s].ka(l,this.jE.nq(h.PE(),s));return r.ma(l),void this.Ga(h,i)}o[i].ka(t,e)}this.bA.ma(t),t.MA=this.bA},QS:function(t){this.LA.push(t),this.qS||(this.qS=setTimeout(T.D(this.WS,this),300))},WS:function(){for(var t=0;t<this.LA.length;t++)this.LA[t].call(this);this.LA.length=0,clearTimeout(this.qS),this.qS=null},Na:function(){var t=Math.round(this.jE.fW);this.WS(),this.fW<t&&this.kA.intersects(this.Aa())?(this.wS(),this.bA.ba(this.kA,this.fW,this.Aa()),this.ES(this.fW,t)):this.fW>t?(this.wS(),this.eS(this.fW,t)):this.mw()},Aa:function(){return this.options.aA?T.oQ.mobile?this.rS(this.jE.getBounds()):this.rS(this.jE.getBounds().lq(1)):this.RS},rS:function(t){var i=this.pa;return void 0!==i&&(t.Cq()>=i&&(t.Lq.lat=1/0),t.Bq()<=-i&&(t.kq.lat=-(1/0))),t},_A:function(t,i){if(i===t)this.HA.addLayer(t);else if(2===i.Ja){i.TS();var e=i.Ra();this.HA.removeLayer(e[0]),this.HA.removeLayer(e[1])}else i.Ta()},Ea:function(t,i){var e,s=t.getLayers(),n=0;for(i=i||[];n<s.length;n++)e=s[n],e instanceof T.LayerGroup?this.Ea(e,i):i.push(e);return i},na:function(t){var i=t.options.icon=this.options.iA({ea:function(){return 1},Ra:function(){return[t]}});return i}}),T.uA.M({RS:new T.Kq(new T.dq(-(1/0),-(1/0)),new T.dq(1/0,1/0))}),T.uA.M({ZA:{wS:function(){},ES:function(t,i){this.bA.ba(this.kA,t),this.bA.ta(null,i,this.Aa()),this.wQ("animationend")},eS:function(t,i){this.bA.ba(this.kA,t),this.bA.ta(null,i,this.Aa()),this.wQ("animationend")},nA:function(t,i){this._A(t,i)}},lA:{wS:function(){this.jE.ow.className+=" tdt-cluster-anim",this.JA++},ES:function(t,i){var e,s=this.Aa(),n=this.HA;this.Ha=!0,this.bA.tS(s,t,0,function(o){var h,r=o.or,a=o.LO;for(s.contains(r)||(r=null),o.YS()&&t+1===i?(n.removeLayer(o),o.ta(null,i,s)):(o.US(),o.ta(r,i,s)),e=a.length-1;e>=0;e--)h=a[e],s.contains(h.or)||n.removeLayer(h)}),this.uS(),this.bA.IS(s,i),n.bE(function(t){t instanceof T.VA||!t.Fr||t.wa()}),this.bA.tS(s,t,i,function(t){t.iS(i)}),this.Ha=!1,this.QS(function(){this.bA.tS(s,t,0,function(t){n.removeLayer(t),t.wa()}),this.OS()})},eS:function(t,i){this.oS(this.bA,t-1,i),this.bA.ta(null,i,this.Aa()),this.bA.ba(this.kA,t,this.Aa())},nA:function(t,i){var e=this,s=this.HA;s.addLayer(t),i!==t&&(i.Ja>2?(i.Ta(),this.uS(),this.wS(),t.fr(this.jE.kw(i.PE())),t.US(),this.QS(function(){s.removeLayer(t),t.wa(),e.OS()})):(this.uS(),e.wS(),e.oS(i,this.jE.getMaxZoom(),this.jE.getZoom())))}},oS:function(t,i,e){var s=this.Aa();t.PS(s,i+1,e);var n=this;this.uS(),t.IS(s,e),this.QS(function(){if(1===t.Ja){var o=t.LO[0];this.Ha=!0,o.sr(o.PE()),this.Ha=!1,o.wa&&o.wa()}else t.tS(s,e,0,function(t){t.ba(s,i+1)});n.OS()})},OS:function(){this.jE&&(this.jE.ow.className=this.jE.ow.className.replace(" tdt-cluster-anim","")),this.JA--,this.wQ("animationend")},uS:function(){T.S.H(document.body.offsetWidth)}}),T.pS=function(t){return new T.uA(t)},T.VA=T.Marker.extend({initialize:function(t,i,e,s){T.Marker.prototype.initialize.call(this,e?e.Ka||e.PE():new T.dq(0,0),{icon:this}),this.ia=t,this.fW=i,this.LO=[],this.La=[],this.Ja=0,this.ra=!0,this.ja=!0,this.Qr=new T.Kq,e&&this.ma(e),s&&this.ma(s)},Ra:function(t){t=t||[];for(var i=this.La.length-1;i>=0;i--)this.La[i].Ra(t);for(var e=this.LO.length-1;e>=0;e--)t.push(this.LO[e]);return t},ea:function(){return this.Ja},Pa:function(){for(var t,i=this.La.slice(),e=this.ia.jE,s=e.nW(this.Qr),n=this.fW+1,o=e.getZoom();i.length>0&&s>n;){n++;var h=[];for(t=0;t<i.length;t++)h=h.concat(i[t].La);i=h}s>n?this.ia.jE.gW(this.or,n):s<=o?this.ia.jE.gW(this.or,o+1):this.ia.jE._W(this.Qr)},getBounds:function(){var t=new T.Kq;return t.extend(this.Qr),t},Ta:function(){this.ra=!0,this.Fr&&this.setIcon(this)},Rr:function(){return this.ra&&(this.AS=this.ia.options.iA(this),this.ra=!1),this.AS.Rr()},Tr:function(){return this.AS.Tr()},ma:function(t,i){this.ra=!0,this.ja=!0,this.aS(t),t instanceof T.VA?(i||(this.La.push(t),t.MA=this),this.Ja+=t.Ja):(i||this.LO.push(t),this.Ja++),this.MA&&this.MA.ma(t,!0)},aS:function(t){this.fLatLng||(this.fLatLng=t.or),this.Ka||(this.Ka=t.Ka||t.or)},SS:function(){var t=this.Qr;t.kq&&(t.kq.lat=1/0,t.kq.lng=1/0),t.Lq&&(t.Lq.lat=-(1/0),t.Lq.lng=-(1/0))},NA:function(){var t,i,e,s,n=this.LO,o=this.La,h=0,r=0,a=this.Ja;if(0!==a){for(this.SS(),t=0;t<n.length;t++)e=n[t].or,this.Qr.extend(e),h+=e.lat,r+=e.lng;for(t=0;t<o.length;t++)i=o[t],i.ja&&i.NA(),this.Qr.extend(i.Qr),e=i.sS,s=i.Ja,h+=e.lat*s,r+=e.lng*s;this.or=this.sS=new T.dq(h/a,r/a),this.ja=!1}},TS:function(t){t&&(this.DS=this.or,this.sr(t)),this.ia.HA.addLayer(this)},dS:function(t,i,e){this.tS(t,0,e-1,function(t){var e,s,n=t.LO;for(e=n.length-1;e>=0;e--)s=n[e],s.Fr&&(s.fr(i),s.US())},function(t){var e,s,n=t.La;for(e=n.length-1;e>=0;e--)s=n[e],s.Fr&&(s.fr(i),s.US())})},PS:function(t,i,e){this.tS(t,e,0,function(s){s.dS(t,s.ia.jE.kw(s.PE()).hQ(),i),s.YS()&&i-1===e?(s.wa(),s.ba(t,i)):s.US(),s.TS()})},IS:function(t,i){this.tS(t,0,i,null,function(t){t.wa()})},ta:function(t,i,e){this.tS(e,-1,i,function(s){if(i!==s.fW)for(var n=s.LO.length-1;n>=0;n--){var o=s.LO[n];e.contains(o.or)&&(t&&(o.DS=o.PE(),o.sr(t),o.US&&o.US()),s.ia.HA.addLayer(o))}},function(i){i.TS(t)})},iS:function(t){for(var i=this.LO.length-1;i>=0;i--){var e=this.LO[i];e.DS&&(e.sr(e.DS),delete e.DS)}if(t-1===this.fW)for(var s=this.La.length-1;s>=0;s--)this.La[s].FS();else for(var n=this.La.length-1;n>=0;n--)this.La[n].iS(t)},FS:function(){this.DS&&(this.sr(this.DS),delete this.DS)},ba:function(t,i,e){var s,n;this.tS(t,-1,i-1,function(t){for(n=t.LO.length-1;n>=0;n--)s=t.LO[n],e&&e.contains(s.or)||(t.ia.HA.removeLayer(s),s.wa&&s.wa())},function(t){for(n=t.La.length-1;n>=0;n--)s=t.La[n],e&&e.contains(s.or)||(t.ia.HA.removeLayer(s),s.wa&&s.wa())})},tS:function(t,i,e,s,n){var o,h,r=this.La,a=this.fW;if(i>a)for(o=r.length-1;o>=0;o--)h=r[o],t.intersects(h.Qr)&&h.tS(t,i,e,s,n);else if(s&&s(this),n&&this.fW===e&&n(this),e>a)for(o=r.length-1;o>=0;o--)h=r[o],t.intersects(h.Qr)&&h.tS(t,i,e,s,n)},YS:function(){return this.La.length>0&&this.La[0].Ja===this.Ja}}),T.Marker.M({US:function(){return this.options.fS=this.options.opacity||1,this.setOpacity(0)},wa:function(){var t=this.setOpacity(this.options.opacity||this.options.fS);return delete this.options.fS,t}}),T.Ma=function(t){this.GS=t,this.gS=t*t,this.HS={},this.hS={}},T.Ma.prototype={ka:function(t,i){var e=this.JS(i.x),s=this.JS(i.y),n=this.HS,o=n[s]=n[s]||{},h=o[e]=o[e]||[],r=T.S.d(t);this.hS[r]=i,h.push(t)},jS:function(t,i){this.ga(t),this.ka(t,i)},ga:function(t,i){var e,s,n=this.JS(i.x),o=this.JS(i.y),h=this.HS,r=h[o]=h[o]||{},a=r[n]=r[n]||[];for(delete this.hS[T.S.d(t)],e=0,s=a.length;e<s;e++)if(a[e]===t)return a.splice(e,1),1===s&&delete r[n],!0},KS:function(t,i){var e,s,n,o,h,r,a,l=this.HS;for(e in l){h=l[e];for(s in h)for(r=h[s],n=0,o=r.length;n<o;n++)a=t.call(i,r[n]),a&&(n--,o--)}},_a:function(t){var i,e,s,n,o,h,r,a,l=this.JS(t.x),u=this.JS(t.y),c=this.hS,f=this.gS,d=null;for(i=u-1;i<=u+1;i++)if(n=this.HS[i])for(e=l-1;e<=l+1;e++)if(o=n[e])for(s=0,h=o.length;s<h;s++)r=o[s],a=this.at(c[T.S.d(r)],t),a<f&&(f=a,d=r);return d},JS:function(t){return Math.floor(t/this.GS)},at:function(t,i){var e=i.x-t.x,s=i.y-t.y;return e*e+s*s}},function(){T.kS={getDistant:function(t,i){var e=i[1].lat-i[0].lat,s=i[0].lng-i[1].lng;return s*(t.lat-i[0].lat)+e*(t.lng-i[0].lng)},LS:function(t,i){var e,s,n,o=0,h=null,r=[];for(e=i.length-1;e>=0;e--)s=i[e],n=this.getDistant(s,t),n>0&&(r.push(s),n>o&&(o=n,h=s));return{maxPoint:h,newPoints:r}},lS:function(t,i){var e=[],s=this.LS(t,i);return s.maxPoint?(e=e.concat(this.lS([t[0],s.maxPoint],s.newPoints)),e=e.concat(this.lS([s.maxPoint,t[1]],s.newPoints))):[t[0]]},va:function(t){var i,e=!1,s=!1,n=!1,o=!1,h=null,r=null,a=null,l=null,u=null,c=null;for(i=t.length-1;i>=0;i--){var f=t[i];(e===!1||f.lat>e)&&(h=f,e=f.lat),(s===!1||f.lat<s)&&(r=f,s=f.lat),(n===!1||f.lng>n)&&(a=f,n=f.lng),(o===!1||f.lng<o)&&(l=f,o=f.lng)}s!==e?(c=r,u=h):(c=l,u=a);var T=[].concat(this.lS([c,u],t),this.lS([u,c],t));return T}}}(),T.VA.M({va:function(){var t,i,e=this.Ra(),s=[];for(i=e.length-1;i>=0;i--)t=e[i].PE(),s.push(t);return T.kS.va(s)}}),T.VA.M({ZS:2*Math.PI,CS:25,VS:Math.PI/6,cS:28,BS:11,vS:5,NS:9,oa:function(){if(this.ia.Ba!==this&&!this.ia.JA){var t,i=this.Ra(),e=this.ia,s=e.jE,n=s.kw(this.or);this.ia.BA(),this.ia.Ba=this,i.length>=this.NS?t=this.bS(i.length,n):(n.y+=10,t=this.MS(i.length,n)),this.nS(i,t)}},_S:function(t){this.ia.JA||(this.mS(t),this.ia.Ba=null)},MS:function(t,i){var e,s,n=this.ia.options.sA*this.CS*(2+t),o=n/this.ZS,h=this.ZS/t,r=[];for(r.length=t,e=t-1;e>=0;e--)s=this.VS+e*h,r[e]=new T.Point(i.x+o*Math.cos(s),i.y+o*Math.sin(s)).JQ();return r},bS:function(t,i){var e,s=this.ia.options.sA,n=s*this.BS,o=s*this.cS,h=s*this.vS*this.ZS,r=0,a=[];for(a.length=t,e=t-1;e>=0;e--)r+=o/n+5e-4*e,a[e]=new T.Point(i.x+n*Math.cos(r),i.y+n*Math.sin(r)).JQ(),n+=h/r;return a},ua:function(){var t,i,e=this.ia,s=e.jE,n=e.HA,o=this.Ra();for(e.Ha=!0,this.setOpacity(1),i=o.length-1;i>=0;i--)t=o[i],n.removeLayer(t),t.Qs&&(t.sr(t.Qs),delete t.Qs),t.setZIndexOffset&&t.setZIndexOffset(0),t.qs&&(s.removeLayer(t.qs),delete t.qs);e.wQ("Ws",{cluster:this,markers:o}),e.Ha=!1,e.Ba=null}}),T.cA=T.VA.extend({nS:function(t,i){var e,s,n,o,h=this.ia,r=h.jE,a=h.HA,l=this.ia.options.DA;for(h.Ha=!0,e=0;e<t.length;e++)o=r.Dw(i[e]),s=t[e],n=new T.Polyline([this.or,o],l),r.addLayer(n),s.qs=n,s.Qs=s.or,s.sr(o),s.setZIndexOffset&&s.setZIndexOffset(1e6),a.addLayer(s);this.setOpacity(.3),h.Ha=!1,h.wQ("spiderfied",{cluster:this,markers:t})},mS:function(){this.ua()}}),T.VA.M({nS:function(t,i){var e,s,n,o,h,r,a=this,l=this.ia,u=l.jE,c=l.HA,f=this.or,d=u.kw(f),p=T.jT.SVG,m=T.extend({},this.ia.options.DA),y=m.opacity;for(void 0===y&&(y=T.uA.prototype.options.DA.opacity),p?(m.opacity=0,m.className=(m.className||"")+" tdt-cluster-spider-leg"):m.opacity=y,l.Ha=!0,e=0;e<t.length;e++)s=t[e],r=u.Dw(i[e]),n=new T.Polyline([f,r],m),u.addLayer(n),s.qs=n,p&&(o=n.Yt,h=o.getTotalLength()+.1,o.style.strokeDasharray=h,o.style.strokeDashoffset=h),s.setZIndexOffset&&s.setZIndexOffset(1e6),s.US&&s.US(),c.addLayer(s),s.fr&&s.fr(d);for(l.uS(),l.wS(),e=t.length-1;e>=0;e--)r=u.Dw(i[e]),s=t[e],s.Qs=s.or,s.sr(r),s.wa&&s.wa(),p&&(n=s.qs,o=n.Yt,o.style.strokeDashoffset=0,n.setStyle({opacity:y}));this.setOpacity(.3),l.Ha=!1,setTimeout(function(){l.OS(),l.wQ("spiderfied",{cluster:a,markers:t})},200)},mS:function(t){var i,e,s,n,o,h,r=this,a=this.ia,l=a.jE,u=a.HA,c=t?l.DE(this.or,t.zoom,t.center):l.kw(this.or),f=this.Ra(),d=T.jT.SVG;for(a.Ha=!0,a.wS(),this.setOpacity(1),e=f.length-1;e>=0;e--)i=f[e],i.Qs&&(i.sr(i.Qs),delete i.Qs,h=!0,i.fr&&(i.fr(c),h=!1),i.US&&(i.US(),h=!1),h&&u.removeLayer(i),d&&(s=i.qs,n=s.Yt,o=n.getTotalLength()+.1,n.style.strokeDashoffset=o,s.setStyle({opacity:0})));a.Ha=!1,setTimeout(function(){var t=0;for(e=f.length-1;e>=0;e--)i=f[e],i.qs&&t++;for(e=f.length-1;e>=0;e--)i=f[e],i.qs&&(i.wa&&i.wa(),i.setZIndexOffset&&i.setZIndexOffset(0),t>1&&u.removeLayer(i),l.removeLayer(i.qs),delete i.qs);a.OS(),a.wQ("Ws",{cluster:r,markers:f})},200)}}),T.uA.M({Ba:null,_S:function(){this.BA.apply(this,arguments)},Sa:function(){this.jE.on("click",this.ws,this),this.jE.options.Nr&&this.jE.on("zoomstart",this.Es,this),this.jE.on("zoomend",this.ua,this),T.oQ.touch||this.jE.vT(this)},da:function(){this.jE.off("click",this.ws,this),this.jE.off("zoomstart",this.Es,this),this.jE.off("Ge",this.es,this),this.jE.off("zoomend",this.ua,this),this.ua()},Es:function(){this.jE&&this.jE.on("Ge",this.es,this)},es:function(t){T._Q.Eq(this.jE.ow,"tdt-touching")||(this.jE.off("Ge",this.es,this),this.BA(t))},ws:function(){this.BA()},BA:function(t){this.Ba&&this.Ba._S(t)},ua:function(){this.Ba&&this.Ba.ua()},Qa:function(t){t.qs&&(this.HA.removeLayer(t),t.wa&&t.wa(),t.setZIndexOffset&&t.setZIndexOffset(0),this.jE.removeLayer(t.qs),delete t.qs)}}),T.uA.M({Rs:function(t){return t?t instanceof T.uA?t=t.bA.Ra():t instanceof T.LayerGroup?t=t.hW:t instanceof T.VA?t=t.Ra():t instanceof T.Marker&&(t=[t]):t=this.bA.Ra(),this.rs(t),this.Ts(),this.options.pA&&this.ts(t),this},rs:function(t){var i,e;for(i in t)for(e=t[i].MA;e;)e.ra=!0,e=e.MA},Ts:function(){this.HA.bE(function(t){t instanceof T.VA&&t.ra&&t.Ta()})},ts:function(t){var i,e;for(i in t)e=t[i],this.hasLayer(e)&&e.setIcon(this.na(e))}}),T.Marker.M({Ys:function(t,i){var e=this.options.icon;return T.setOptions(e,t),this.setIcon(e),i&&this.MA&&this.MA.ia.Rs(this),this}}),T.Us=T.DivIcon.extend({options:{url:"",size:[12,12],offset:[],textColor:"#ff00ff",textSize:10},initialize:function(t){t&&(t.bgPos&&(this.options.bgPos=t.offset),t.size&&(this.options.iconSize=t.size),t.textColor&&(this.options.textColor=t.textColor),t.textSize&&(this.options.textSize=t.textSize),t.url&&(this.options.url=t.url)),this.options.className="tdt-cluster0",T.DivIcon.prototype.initialize.call(this,t)},er:function(t,i){T.DivIcon.prototype.er.call(this,t,i),t.className=this.options.className||"",this.options.url&&(t.style.backgroundImage="url("+this.options.url+")"),this.options.textColor&&(t.style.color=this.options.textColor),this.options.textSize&&(t.style.fontSize=this.options.textSize+"pt"),t.style.lineHeight=t.style.height}}),T.MarkerClusterer=T.uA.extend({options:{markers:{},girdSize:60,maxZoom:30,minClusterSize:2,isAverangeCenter:!1,styles:[{url:T.w.E+"/img/map/cluster/cluster0.png",size:[42,42],offset:new T.Point(-15,-13),textColor:"#000000",textSize:8,range:[0,80]},{url:T.w.E+"/img/map/cluster/cluster1.png",size:[42,42],offset:new T.Point(-20,-17),textColor:"#ffffff",textSize:10,range:[80,200]},{url:T.w.E+"/img/map/cluster/cluster2.png",size:[45,45],soffset:new T.Point(-10,-22),textColor:"#000000",textSize:10,range:[200,500]},{url:T.w.E+"/img/map/cluster/cluster3.png",size:[50,50],soffset:new T.Point(-10,-22),textColor:"#ffffff",textSize:10,range:[500,1e3]},{url:T.w.E+"/img/map/cluster/cluster4.png",size:[55,55],soffset:new T.Point(-10,-22),textColor:"#000000",textSize:10,range:[1e3]}]},initialize:function(t,i){T.S.setOptions(this,i),i&&i.minClusterSize&&(this.options.styles=i.styles),T.uA.prototype.initialize.call(this,i),i.markers&&this.addLayers(i.markers),this.options.oA=!1,t.addLayer(this),t.on("zoomend moveend",this._viewChangeEndNotClustering,this)},_viewChangeEndNotClustering:function(){var t=this.HA,i=this.Aa(),e=this.options.minClusterSize,s=this.options.isAverangeCenter;targetZoom=this.fW,t.bE(function(i){t.removeLayer(i)}),this.bA.tS(i,-1,targetZoom,function(i){if(i.fW!==targetZoom)for(var e,s=i.LO,n=0;n<s.length;n++)e=i.LO[n],t.addLayer(e)},function(i){if(s?i.sr(i.getBounds().getCenter()):i.sr(i.fLatLng),i.Ja<e)for(var n=i.Ra(),o=0;o<n.length;o++)t.addLayer(n[o]);else i.TS()})},addMarker:function(t){return this.addLayer(t),this},addMarkers:function(t){return this.addLayers(t),this},clearMarkers:function(){return this.clearLayers(),this},getClustersCount:function(){return markers&&markers.HA&&markers.HA.getLayers()?markers.HA.getLayers().length:0},getGridSize:function(){return this.options.IA},getMarkers:function(){return markers.HA.getLayers()},getMaxZoom:function(){return this.options.AA},getStyles:function(){return this.options.styles},isAverageCenter:function(){},removeMarker:function(t){return this.removeLayer(t),this},removeMarkers:function(t){return this.removeLayers(t),this},setGridSize:function(t){this.options.IA=t;var i=this.getLayers().splice(0);return this.clearMarkers(),this.addMarkers(i),this},setMaxZoom:function(t){this.options.AA=t;var i=this.getLayers().splice(0);return this.clearMarkers(),this.addMarkers(i),this},setMinClusterSize:function(t){},setStyles:function(t,i){this.options.styles=t,t&&(this.options.iA=function(i){var e={};for(e.childCount=childCount=i.ea(),k=0;k<t.length;k++){var s=t[k];if(2==s.range.length&&s.range[0]<=childCount&&childCount<=s.range[1]){e=s,e.childCount=childCount,e.iconSize=s.size;break}if(1==s.range.length&&childCount>s.range[0]){e=s,e.childCount=childCount,e.iconSize=s.size;break}}var n="<div><span >"+childCount+"</span></div>";return e.html=n,new T.Us(e)},i||this.Rs())}}),T.Map.ContextMenu=T.Kr.extend({Tu:T.oQ.msPointer?"MSPointerDown":T.oQ.pointer?"pointerdown":"touchstart",v:{us:"tdt-contextmenu"},initialize:function(t){T.Kr.prototype.initialize.call(this,t),this.Is||(this.Is=[]),this.is=!1;var i=this.Ow=T._Q.s("div",T.Map.ContextMenu.us,t.Ow);i.style.zIndex=1e4,i.style.position="absolute",t.options.Os&&(i.style.width=t.options.Os+"px"),this.os(),T.oq.on(i,"click",T.oq.uw).on(i,"mousedown",T.oq.uw).on(i,"dblclick",T.oq.uw).on(i,"contextmenu",T.oq.uw)},oU:function(){T.oq.on(document,"keydown",this.QI,this),this.jE.on({contextmenu:this.Ps,mousedown:this.ps,movestart:this.ps,zoomstart:this.ps},this),T.oq.on(this.jE.getContainer(),"mouseleave",this.ps,this)},Ar:function(){T.oq.off(document,"keydown",this.QI,this),this.jE.off({contextmenu:this.Ps,mousedown:this.ps,movestart:this.ps,zoomstart:this.ps},this),T.oq.off(this.jE.getContainer(),"mouseleave",this.ps,this)},As:function(t,i){t instanceof T.dq&&(t=this.jE.BW(t)),this.as(t,i)},hide:function(){this.ps()},addItem:function(t){if(this.Ow)this.Ss(t);else if("-"!=t){var i=new T.MenuItem(t.text,t.callback);i.ss=0,this.Ds||(this.Ds=[]),this.Ds.push(i)}else this.Ds.push(t)},Ss:function(t,i){this.Is||(this.Is=[]),i=void 0!==i?i:this.Is.length;var e=this.ds(this.Ow,t,i);return this.Is.push(e),this.kW=!0,this.jE.wQ("contextmenu.additem",{contextmenu:this,el:e.el,index:i}),e.el},removeItem:function(t){var i=this.Ow;isNaN(t)||(t=i.children[t]),t&&(this.Fs(T.S.d(t)),this.kW=!0,this.jE.wQ("contextmenu.removeitem",{contextmenu:this,el:t}))},fs:function(){for(var t;this.Ow.children.length;)t=this.Ow.children[0],this.Fs(T.S.d(t))},Gs:function(){var t,i,e;for(i=0,e=this.Is.length;i<e;i++)t=this.Is[i],t.el.style.display="none"},gs:function(){var t,i,e;for(i=0,e=this.Is.length;i<e;i++)t=this.Is[i],t.el.style.display=""},Hs:function(t,i){var e=this.Ow,s=T.Map.ContextMenu.us+"-item";isNaN(t)||(t=e.children[t]),t&&T._Q.Eq(t,s)&&(i?(T._Q.Rq(t,s+"-disabled"),this.jE.wQ("contextmenu.disableitem",{contextmenu:this,el:t})):(T._Q.Tq(t,s+"-disabled"),this.jE.wQ("contextmenu.enableitem",{contextmenu:this,el:t})))},hs:function(){return this.is},os:function(){this.Ds||(this.Ds=[]);var t,i,e=this.Ds;for(t=0,i=e.length;t<i;t++)this.Is.push(this.ds(this.Ow,e[t]))},ds:function(t,i,e){var s=new T.MenuItem;if(s.text=i.text,i.separator||"-"===i)return this.Js(t,e);var n=T.Map.ContextMenu.us+"-item",o=i.disabled?n+" "+n+"-disabled":n,h=this.js("a",o,t,e),r=this.Ks(h,i.callback,i.context,i.ks),a="";return i.icon?a="<img class=\'"+T.Map.ContextMenu.us+"-icon\' src=\'"+i.icon+"\'/>":i.Ls&&(a="<span class=\'"+T.Map.ContextMenu.us+"-icon "+i.Ls+"\'></span>"),h.innerHTML=a+s.text,h.href="#",s.el=h,T.oq.on(h,"mouseover",this.ls,this.el).on(h,"mouseout",this.Zs,this.el).on(h,"mousedown",T.oq.stopPropagation).on(h,"click",r),s.id=T.S.d(h),s.callback=r,s.ss=0,s.Cs(i.isable),s},Fs:function(t){var i,e,s,n;for(s=0,n=this.Is.length;s<n;s++)if(i=this.Is[s],i.id===t)return e=i.el,callback=i.callback,callback&&T.oq.off(e,"mouseover",this.ls,this).off(e,"mouseover",this.Zs,this).off(e,"mousedown",T.oq.stopPropagation).off(e,"click",i.callback),this.Ow.removeChild(e),this.Is.splice(s,1),i;return null},Js:function(t,i){var e=new T.MenuItem,s=this.js("div",T.Map.ContextMenu.us+"-separator",t,i);return e.el=s,e.id=T.S.d(s),e.text="-",e.ss=1,e},Ks:function(t,i,e,s){var n=this,o=this.jE,h=T.Map.ContextMenu.us+"-item-disabled",s=void 0===s||s;return function(r){T._Q.Eq(t,h)||(s&&n.ps(),i&&i.call(e||o,n.Vs.lnglat),n.jE.wQ("contextmenu:select",{contextmenu:n,el:t}))}},js:function(t,i,e,s){var n,o=document.createElement(t);return o.className=i,void 0!==s&&(n=e.children[s]),n?e.insertBefore(o,n):e.appendChild(o),o},Ps:function(t){this.as(t.containerPoint)},as:function(t,i){if(this.Is.length){for(var e=this.jE,s=e.Lw(t),n=e.layerPointToLngLat(s),o={contextmenu:this},h=0;h<this.Is.length;h++)this.Is[h].cs=n;i&&(o=T.extend(i,o)),this.Vs={lnglat:n},this.bP(t),this.is?this.bP(t):(this.Ow.style.display="block",this.is=!0),this.jE.wQ("contextmenu.show",o)}},ps:function(){this.is&&(this.is=!1,this.Ow.style.display="none",this.jE.wQ("contextmenu.hide",{contextmenu:this}))},bP:function(t){var i,e=this.jE.getSize(),s=this.Ow,n=this.Bs(s);this.jE.options.vs&&(i=T.SQ(this.jE.options.vs),t=t.AQ(i)),s._tdt_pos=t,t.x+n.x>e.x?(s.style.left="auto",s.style.right=Math.max(e.x-t.x,0)+"px"):(s.style.left=Math.max(t.x,0)+"px",s.style.right="auto"),t.y+n.y>e.y?(s.style.top="auto",s.style.bottom=Math.max(e.y-t.y,0)+"px"):(s.style.top=Math.max(t.y,0)+"px",s.style.bottom="auto")},Bs:function(t){var i=this.Hw,e=t.style.display;return i&&!this.kW||(i={},t.style.left="-999999px",t.style.right="auto",t.style.display="block",i.x=t.offsetWidth,i.y=t.offsetHeight,t.style.left="auto",t.style.display=e,this.kW=!1),i},nu:function(t){this.ps()},QI:function(t){var i=t.keyCode;27===i&&this.ps()},ls:function(t){T._Q.Rq(t.target||t.srcElement,"over")},Zs:function(t){T._Q.Tq(t.target||t.srcElement,"over")}}),T.MenuItem=T.c.extend({initialize:function(t,i,e){this.text=t,this.callback=i,e&&(this.weight=e.weight,this.icon=e.icon),this.ss=0,this.isable=!0},setText:function(t){if(1!=this.ss)return this.text=t,this.el&&(this.el.innerHTML=this.text,T._Q.Rq(this.el,"tdt-contextmenu-item"),T.oq.on(this.el,"mouseover",this.ls,this.el).on(this.el,"mouseout",this.Zs,this.el)),this},ls:function(t){T._Q.Rq(this,"over")},Zs:function(t){T._Q.Tq(this,"over")},setCallback:function(t){return this.el&&(this.callback&&T.oq.off(this.el,"click",this.callback),this.callback=this.Ks(this.el,t),T.oq.on(this.el,"click",this.callback,this)),this.callback=t,this},Ks:function(t,i){return function(){this.cs&&i(this.cs)}},enable:function(){return this.isable=!0,this.Cs(this.isable),this},disable:function(){return this.isable=!1,this.Cs(this.isable),this},setIcon:function(t){var t;return this.el&&(t&&(html="<img class=\'"+T.Map.ContextMenu.us+"-icon\' src=\'"+t+"\'/>"),this.el.innerHTML=html+this.text),this},Cs:function(t){var i=T.Map.ContextMenu.us+"-item",e=this.el;e&&e&&T._Q.Eq(e,i)&&(t?T._Q.Tq(e,i+"-disabled"):T._Q.Rq(e,i+"-disabled"))}}),T.ContextMenu=T.Map.ContextMenu.extend({includes:T.iQ.OQ,options:{width:120,Items:[]},initialize:function(t,i){t.width&&(this.options.width=t.width),t.Items&&(this.options.Items=t.Items),i&&this.Ns(i,this.options)},as:function(t,i){T.Map.ContextMenu.prototype.as.call(this,t,i),this.Is.length&&this.wQ("open",{pixel:t})},ps:function(){T.Map.ContextMenu.prototype.ps.call(this),this.is&&this.wQ("close")},Ns:function(t,i){t.options.contextmenu=!0,t.options.Os=this.options.width,t.options.Ds=this.options.Items,T.Map.ContextMenu.prototype.initialize.call(this,t),this.Is=this.getItems(),this.enable()},getItem:function(t){var i=this.getItems();return i[t]},removeItem:function(t){t.hasOwnProperty("el")?T.Map.ContextMenu.prototype.removeItem.call(this,t.el):T.Map.ContextMenu.prototype.removeItem.call(this,t)},addSeparator:function(){this.addItem("-")},removeSeparator:function(t){for(var i=0,e=0;this.Is[i];)1==this.Is[i].ss&&(e==t&&this.removeItem(i),e++),i++},getItems:function(){var t;t=this.Is?this.Is:this.Ds;var i=[];if(this.Is)for(index=0;index<t.length;index++)0==this.Is[index].ss&&(t[index].text=t[index].el.text,i.push(t[index])),1==this.Is[index].ss&&(t[index].text="-");else i=t;return i},getAllSeparator:function(){var t=this.Is,i=new Array;for(index=0;index<t.length;index++)1==this.Is[index].ss&&i.push(t[index]);return i}}),T.Map.M({addContextMenu:function(t,i){t.Ns(this,i)}}),T.CoordinatePickup=T.Kr.extend({options:{},initialize:function(t,i){this.jE=t,i&&i.callback&&(this.callback=i.callback)},oU:function(){this.jE.on("click",this._onEvent,this)},Ar:function(){this.jE.off("click",this._onEvent,this)},_onEvent:function(t){var i=t.lnglat;this.callback(i)},enable:function(){this.jE&&this.callback&&(this.eU||T.Kr.prototype.enable.call(this))},disable:function(){this.eU&&T.Kr.prototype.disable.call(this)},addEvent:function(){this.enable()},removeEvent:function(){this.disable()}}),window.TDT_POINT_SIZE_TINY="TINY",window.TDT_POINT_SIZE_SMALLER="SMALLER",window.TDT_POINT_SIZE_SMALL="SMALL",window.TDT_POINT_SIZE_NORMAL="NORMAL",window.TDT_POINT_SIZE_BIG="BIG",window.TDT_POINT_SIZE_BIGGER="BIGGER",window.TDT_POINT_SIZE_HUGE="HUGE",window.TDT_POINT_SHAPE_CIRCLE="CIRCLE",window.TDT_POINT_SHAPE_STAR="STAR",window.TDT_POINT_SHAPE_SQUARE="SQUARE",window.TDT_POINT_SHAPE_RHOMBUS="RHOMBUS",window.TDT_POINT_SHAPE_WATERDROP="WATERDROP",T.CloudMarker=T.jT.extend({options:{fill:!0,size:1,weight:0,fillOpacity:.6,shape:0,zindex:0},initialize:function(t,i){T.setOptions(this,i),this.or=T.fq(t),this.Hw=this.options.size},onRemove:function(){this.bT.et(this)},sr:function(t){return this.or=T.fq(t),this.redraw(),this.wQ("move",{KT:this.or})},PE:function(){return this.or},setStyle:function(t){return T.setOptions(this,t),T.jT.prototype.setStyle.call(this,t),this},Rt:function(){this.eY=this.jE.kw(this.or),this.RY()},Oe:function(){this.jE&&this.rt()},rt:function(){0==this.options.shape?this.bT._updatePaths(this,this._updatePath_circles):1==this.options.shape?this.bT._updatePaths(this,this._updatePath_rects):2==this.options.shape?this.bT._updatePaths(this,this._updatePath_diamonds):3==this.options.shape?this.bT._updatePaths(this,this._updatePath_stars):4==this.options.shape&&this.bT._updatePaths(this,this._updatePath_w)},_updatePath_rects:function(t,i,e){t.beginPath(),t.moveTo(i.x-e/2,i.y-e/2),t.lineTo(i.x-e/2,i.y+e/2),t.lineTo(i.x+e/2,i.y+e/2),t.lineTo(i.x+e/2,i.y-e/2),t.closePath()},_updatePath_diamonds:function(t,i,e){t.beginPath(),t.moveTo(i.x,i.y-e/2),t.lineTo(i.x-e/2,i.y),t.lineTo(i.x,i.y+e/2),t.lineTo(i.x+e/2,i.y),t.closePath()},_updatePath_circles:function(t,i,e){t.beginPath(),t.arc(i.x,i.y,e/2,0,2*Math.PI,!1),t.closePath()},_updatePath_w:function(t,i,e){t.beginPath(),e=e/4*3;var s=i.x,n=i.y-e/4,o=e/2,h=e;t.moveTo(s,n-o),t.bezierCurveTo(s-o,n-o,s-3*o/2,n+o/3,s,n+h),t.bezierCurveTo(s+3*o/2,n+o/3,s+o,n-o,s,n-o),t.closePath()},_updatePath_stars:function(context,p,l){var x=p.x,y=p.y-l/8;l=3*l/8;var rad1=Math.sin(.4*Math.PI),rad2=Math.cos(.4*Math.PI),rad3=Math.sin(.2*Math.PI),rad4=Math.cos(.2*Math.PI);with(context)context.beginPath(),context.moveTo(x+0,y-l*rad1),context.lineTo(x+l*rad2,y+0),context.lineTo(x+l+l*rad2,y+0),context.lineTo(x+l*rad2+2*l*rad2*rad2,y+l*rad3),context.lineTo(x+l*rad4,y+2*l*rad1*rad1-l*rad1+l*rad3),context.lineTo(x+0,y+2*l*rad1*rad1-l*rad1),context.lineTo(x-l*rad4,y+2*l*rad1*rad1-l*rad1+l*rad3),context.lineTo(x-l*rad2-2*l*rad2*rad2,y+l*rad3),context.lineTo(x+-l-l*rad2,y+0),context.lineTo(x-l*rad2,y+0),context.lineTo(x+0,y-l*rad1),context.closePath()},tY:function(){return this.Hw&&!this.bT.Qr.intersects(this.vt)},RY:function(){var t=this.Hw,i=this.rY||t,e=this.Ut(),s=[t+e,i+e];this.vt=new T.ZQ(this.eY.sQ(s),this.eY.AQ(s))},tY:function(){return this.Hw&&!this.bT.Qr.intersects(this.vt)}}),T.CloudMarker.prototype.HY=function(t){if(0==this.options.shape)return t.distanceTo(this.eY)<=this.options.size/2;var i=this.eY,e=this.options.size,s=t.y+e/2,n=t.y-e/2,o=t.x+e/2,h=t.x-e/2;return n<=i.y&&i.y<=s&&h<=i.x&&i.x<=o},T.CloudMarkerCollection=T.fT.extend({options:{fill:!0,size:10,color:"#fa937e",fillOpacity:.6,shape:0},initialize:function(t,i){return this.latlngs=t?t:[],T.setOptions(this,i),this.checkedOption(),T.LayerGroup.prototype.initialize.call(this,i),this.options.iW=this.options.iW?this.options.iW:new T.CanvasMarker,this},checkedOption:function(){switch(this.options.ShapeType){case"CIRCLE":this.options.shape=0;break;case"STAR":this.options.shape=1;break;case"SQUARE":this.options.shape=2;break;case"RHOMBUS":this.options.shape=3;break;case"WATERDROP":this.options.shape=4}switch(this.options.SizeType){case"TINY":this.options.size=2;break;case"SMALLER":this.options.size=4;break;case"SMALL":this.options.size=8;break;case"NORMAL":this.options.size=10;break;case"BIG":this.options.size=16;break;case"BIGGER":this.options.size=20;break;case"HUGE":this.options.size=30}},onAdd:function(t){this.update()},update:function(){for(var t=0;t<this.latlngs.length;t++)this.addLayer(new T.CloudMarker(this.latlngs[t],this.options))},setLnglats:function(t){this.latlngs=t,this.clear(),this.update()},setStyles:function(t){T.setOptions(this,t),this.setPoints(this.latlngs)},clear:function(){this.clearLayers(),this.options.iW.aY.clearRect(0,0,this.options.iW.Ow.width,this.options.iW.Ow.height)}}),T.CanvasMarker=T.mT.extend({sW:function(){var t=this.Ow=document.createElement("canvas");T.oq.on(t,"mousemove",T.S.G(this.PY,32,this),this).on(t,"click",this.pY,this).on(t,"mouseout",this.AY,this),this.aY=t.getContext("2d")},_updatePaths:function(t,i){if(!t.tY()){var e=t.eY,s=this.aY,n=t.Hw;this.SY[t.F]=t,i(s,e,n),this.gY(s,t)}},pY:function(t){if(!t._stopped){var i=this.jE.cw(t),e=[];for(var s in this.hW){var n=this.hW[s];n.options.mR&&n.HY(i)&&(T.oq.hY(t),e.push(n))}e.sort(function(t,i){return t.zindex-i.zindex}),e.length>0&&this.JY(e,t,t.type)}},jY:function(t,i){var e,s;if(!this.KY||this._prehoveredLayer!=this.KY){for(e in this.SY)if(s=this.SY[e],s.options.mR&&s.HY(i)){T._Q.Rq(this.Ow,"tdt-interactive"),this._prehoveredLayer=this.KY,this.KY=s,this._prehoveredLayer!=this.KY&&this.JY([s],t,"mouseover");break}this.KY&&this._prehoveredLayer!=this.KY&&this.JY([this.KY],t)}},AY:function(t,i){var e=this.KY;!e||"mouseout"!==t.type&&e.HY(i)||(T._Q.Tq(this.Ow,"tdt-interactive"),this.JY([e],t,"mouseout"),this.KY=null)},JY:function(t,i,e){this.oE(i,e||i.type,[t[0]])},oE:function(t,i,e){if(!t._stopped&&(e=(e||[]).concat(this.jE.YE(t,i)),e.length)){var s=e[0];"contextmenu"===i&&s.EQ(i,!0)&&T.oq.preventDefault(t);var n={originalEvent:t};if("keypress"!==t.type){var o=!!s.PE;n.lnglat=o?s.PE():this.jE.Dw(n.layerPoint)}for(var h=0;h<e.length;h++)if(e[h].wQ(i,n,!0),n.originalEvent._stopped||e[h].options.pE&&T.S.indexOf(e[h].options.pE,i)!==-1)return}}}),T.GridlineLayer=T.TileLayer.extend({options:{Te:256,minZoom:1,maxZoom:18,opacity:1,outlineSize:{width:1,style:"solid",color:"#999"},textSize:{display:!1,fontSize:"14",fontWeight:!0,color:"black"}},setOptions:function(t,i){for(var e in i)"outlineSize"!=e&&"textSize"!=e&&(t[e]=i[e]);return t},initialize:function(t){t&&t.size&&(this.options.Te=t.size),this.options.outlineSize=this.setOptions(this.options.outlineSize,t.outlineSize),this.options.textSize=this.setOptions(this.options.textSize,t.textSize),this.setOptions(this.options,t)},He:function(t,i){var e=this.options,s=e.textSize,n=e.outlineSize,o=document.createElement("div");return s.display&&(o.innerHTML=[t.x,t.y,t.z].join(", "),o.style.fontWeight=s.fontWeight?"bold":"normal",o.style.fontSize=s.fontSize+"px",o.style.color=s.color,o.style.textAlign="center",o.style.height=e.Te+"px",o.style.width=e.Te+"px",o.style.lineHeight=e.Te+"px",o.style.display="block",o.style.wordBreak="keep-all",o.style.whiteSpace="nowrap",o.style.overflow="hidden",o.style.textoverflow="ellipsis"),o.style.outline=n.width+"px "+n.style+" "+n.color,setTimeout(function(){i(null,o)},50+10*Math.random()),o}}),T.PaintBrushTool=T.Tool.extend({options:{keepdrawing:!0,style:{color:"blue",weight:10,opacity:.5}},initialize:function(t,i){T.setOptions(this,i),this.jE=t;var e=T.oQ.touch;this.mousemove=e?"touchmove":"mousemove",this.mouseFire=e?"touchend":"mouseup",this.mousedown=e?"touchstart":"mousedown",this.layers=new T.LayerGroup,this.jE.addLayer(this.layers)},enable:function(){this.eU||(this.eU=!0,this.oU())},disable:function(){this.eU&&(this.eU=!1,this.Ar())},open:function(){this.enable()},close:function(){this.disable()},getLayers:function(){return this.layers.getLayers()},clear:function(){this.layers.clearLayers()},oU:function(){this.jE&&(this.jE.disableDrag(),this.Ow=this.jE.getContainer(),this.jE.on(this.mousemove,this.bs,this),this.jE.on(this.mousedown,this.Ms,this),T.oq.on(document,this.mouseFire,this.ns,this),T._Q.Oq(),this.jE.getContainer().style.cursor="crosshair")},Ar:function(){this.jE&&(this.jE.enableDrag(),this.jE.off(this.mousemove,this.bs,this),this.jE.off(this.mousedown,this.Ms,this),T._Q.Pq(),T.oq.on(document,this.mouseFire,this.ns,this),this.jE.getContainer().style.cursor="")},bs:function(t){if(this.DragLayer){var i=t.lnglat,e=this.DragLayer.getLngLats();e.push(i),this.DragLayer.setLngLats(e),this.jE.getContainer().style.cursor="pointer"}},Ms:function(t){this.DragLayer=new T.Polyline([],this.options.style),this.layers.addLayer(this.DragLayer)},ns:function(t){this.DragLayer&&(this.DragLayer=null,this.jE.getContainer().style.cursor="crosshair",this.options.keepdrawing||this.disable())}});')
        },

        initPlayer(){
            //定义一个变量：videoObject，用来做为视频初始化配置
            var videoObject = {
                container: '.video', //“#”代表容器的ID，“.”或“”代表容器的class
                video: 'http://ckplayer-video.oss-cn-shanghai.aliyuncs.com/sample-mp4/05cacb4e02f9d9e.mp4'//视频地址
            };
            new ckplayer(videoObject);//初始化播放器
        },
        initPlayer1(){
            //定义一个变量：videoObject，用来做为视频初始化配置
            var videoObject = {
                container: '.video1', //“#”代表容器的ID，“.”或“”代表容器的class
                video: 'http://ckplayer-video.oss-cn-shanghai.aliyuncs.com/sample-mp4/05cacb4e02f9d9e.mp4'//视频地址
            };
            new ckplayer(videoObject);//初始化播放器
        },
        initPlayer2(){
            //定义一个变量：videoObject，用来做为视频初始化配置
            var videoObject = {
                container: '.video2', //“#”代表容器的ID，“.”或“”代表容器的class
                video: 'http://ckplayer-video.oss-cn-shanghai.aliyuncs.com/sample-mp4/05cacb4e02f9d9e.mp4'//视频地址
            };
            new ckplayer(videoObject);//初始化播放器
        },
        runTrack(){
            var _CarTrack = new T.CarTrack(this.map, {
                interval: 5,
                speed: 3,
                dynamicLine: true,
                polylinestyle: {color: "#2C64A7", weight: 5, opacity: 0.9},
                Datas: datas.features.map(function (obj, i) {
                        var coordinates = obj.geometry.coordinates;
                        var lnlat = new T.LngLat(coordinates[0], coordinates[1]);
                        return lnlat;

                    }
                )
            })

            _CarTrack.start()
        },
        isSupportCanvas() {
            var elem = document.createElement('canvas');
            return !!(elem.getContext && elem.getContext('2d'));
        },
        getMapCenter() {
            alert("当前地图中心点：" + this.map.getCenter().getLng() + "," + this.map.getCenter().getLat());
        },
        initMap(id, callback){


            if (!this.isSupportCanvas()) {
                alert('热力图目前只支持有canvas支持的浏览器,您所使用的浏览器不能使用热力图功能~')
            }

            // var tile = new T.TileLayer("http://t4.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=59bfa32992efdcd992f6e430bec28557");
            // let map = new T.Map(id , {layers: [tile]});
            // var imageURL = 'http://t0.tianditu.gov.cn/img_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=59bfa32992efdcd992f6e430bec28557';
            var imageURL = 'http://127.0.0.1:8885/img_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=59bfa32992efdcd992f6e430bec28557';
            //创建自定义图层对象
            var lay = new T.TileLayer(imageURL, {minZoom: 16, maxZoom: 18});
            let map = new T.Map(id, {maxZoom: 18, minZoom: 16,layers: [lay]});
            // let map = new T.Map(id, {maxZoom: 18, minZoom: 16});
            // let map = new T.Map(id);
            let zoom = 18;
            //map.centerAndZoom(new T.LngLat(108.95, 34.27), zoom);
            // map.centerAndZoom(new T.LngLat(117.200331,39.139236), zoom);
            // map.centerAndZoom(new T.LngLat(116.37498183504351,39.92075975809364), zoom);
            // map.centerAndZoom(new T.LngLat(116.39719000000002,39.91493000000001), zoom);
            map.centerAndZoom(new T.LngLat(116.3972040393362,39.915000019804204), zoom);

            map.setMaxBounds(new T.LngLatBounds(new T.LngLat(116.39259326517276,39.91709471983455), new T.LngLat(116.40208342138612,39.91113682746972)));
            // 定义该矩形的显示区域
            // var circle = new T.Circle(new T.LngLat(116.3972,39.915), 5000,
            //     {color:"blue",weight:5,opacity:0.5,fillColor:"#FFFFFF",fillOpacity:0.5,lineStyle:"solid"});
            // //向地图上添加圆
            // map.addOverLay(circle);
            var circle = new T.Circle(new T.LngLat(116.3972,39.915), 100); //创建圆
            map.addOverLay(circle);            //增加圆
            // circle.addEventListener("click", overlay_style);

            // 随机向地图添加25个标注
            var bounds = map.getBounds();
            var sw = bounds.getSouthWest();
            var ne = bounds.getNorthEast();
            var lngSpan = Math.abs(sw.lng - ne.lng);
            var latSpan = Math.abs(ne.lat - sw.lat);


            for (var i = 0; i < 25; i++) {
                var point = new T.LngLat(sw.lng + lngSpan * (Math.random() * 0.7), ne.lat - latSpan * (Math.random() * 0.7));

                let icon = new T.Icon({
                    iconUrl: "/static/images/openlibrary/marker-icon.png",
                    iconSize: new T.Point(26, 32),
                    iconAnchor: new T.Point(10, 25),
                    uniqueCode: point
                });
                var marker = new T.Marker(point, {
                    icon: icon
                });// 创建标注
                map.addOverLay(marker);
            }

            var bd = new T.LngLatBounds(
                new T.LngLat(116.39259326517276, 39.91709471983455),
                new T.LngLat(116.40208342138612, 39.91113682746972));
            var img = new T.ImageOverlay("/static/images/openlibrary/gugong.jpg", bd, {
                opacity: 1,
                alt: "故宫博物院"
            });
            map.addOverLay(img);


            //详细的参数,可以查看heatmap.js的文档 https://github.com/pa7/heatmap.js/blob/master/README.md
            //参数说明如下:
            /* visible 热力图是否显示,默认为true
             * opacity 热力的透明度,1-100
             * radius 势力图的每个点的半径大小
             * gradient  {JSON} 热力图的渐变区间 . gradient如下所示
             *	{
             .2:'rgb(0, 255, 255)',
             .5:'rgb(0, 110, 255)',
             .8:'rgb(100, 0, 255)'
             }

             value 为颜色值.
             */

            heatmapOverlay = new T.HeatmapOverlay({
                "radius": 30,
//                visible: false
            });
            //  map.addOverLay(countriesOverlay)
            // map.addOverLay(heatmapOverlay);




            this.map = map;

            this.getMapCenter();
            callback()
        },
        toDevice(){
           this.deviceDialog = true;
        },
        init: function(){
        	console.log('call init method.')
        },
        getDeviceList:function(){
            var _this = this;
            $.ajax({
                type: "POST",
                url: root+"/device/getDeviceList",
                data: {},
                success: function(data){
                    _this.tableDataDevice =data.object;
                }
            });
        },

        getDeviceUsersList:function(){
            var _this = this;
            $.ajax({
                type: "POST",
                url: root+"/deviceUsers/getDeviceUsersList",
                data: {},
                success: function(data){
                    _this.tableDataUsers =data.object;
                }
            });
        },
        enabledChange:function(val){
            var _this = this;
            $.ajax({
                type: "POST",
                url: root+"/deviceUsers/enabledChange",
                data: {id:val.id,enabled:val.enabled},
                success: function(data){
                    debugger
                    if (data.object==1){
                        _this.message = "修改成功";
                        _this.getDeviceUsersList();
                    }else {
                        _this.message = "修改失败";
                    }
                }
            });
        },
        //踢掉
        disconnectDevice :function (val){
            var _this = this;
            this.$confirm('踢掉当前用户, 是否继续?', '提示', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',
                type: 'warning'
            }).then(() => {
                $.ajax({
                    type: "POST",
                    url: root+"/device/disconnectDevice",
                    data: {id:val},
                    success: function(data){
                        if( data.state == "OK"){
                            _this.getDeviceList()
                        }
                    }
                });
                this.$message({
                    type: 'success',
                    message: '当前设备已被踢出!'
                });
            }).catch(() => {
                this.$message({
                    type: 'info',
                    message: '已取消'
                });
            });

        },
        refreshDD:function(){
        	var _this = this;
        	$.ajax({
                type: "GET",
                url: root+"/dataDictionary/refesh",
                data: {},
                success: function(data){
                	console.log(data);
                    _this.message = "刷新成功";
                }
            });
        },
        sendMQ:function(){
        	var _this = this;
        	$.ajax({
                type: "GET",
                url: root+"/sendMQ",
                data: {"message":"test!!"},
                success: function(data){
                	console.log(data);
                    _this.message = "发送成功";
                }
            });
        },
        pushData:function(val){
        	var _this = this;
        	$.ajax({
                type: "GET",
                url: root+"/device/pushData",
                data: {id:val,data:"/aaaa/111"},
                success: function(data){
                	console.log(data);
                    _this.message = data;
                }
            });
        },
        mongodbAddData:function(){
        	var _this = this;
        	$.ajax({
                type: "POST",
                url: root+"/mongodb/save",
                data: {"gender":"1","name":"zhangsan"},
                success: function(data){
                	console.log(data);
                    _this.message = data;
                }
            });
        },
        mongodbGetData:function(){
        	var _this = this;
        	$.ajax({
                type: "POST",
                url: root+"/mongodb/findById",
                data: {"id":"1619141750342"},
                success: function(data){
                	console.log(data);
                    _this.message = data;
                }
            });
        }
    }
});
</script>
<style acoped>


    body{
        margin: 0;
        padding: 0;
        padding: 10px;

        background: #001236;
        color: #fff;
    }
    *{
        padding: 0;
        margin: 0;
    }
    /* 背景 */
    .login-container {
        position: absolute;
        width: 99%;
        height: 99%;
        background-image: url("/static/img/background.jpg");
    }

    .navbar{
        display: flex;
        justify-content: space-between;
    }

    .navbar-right{
        display: flex;
        justify-content: space-between;
    }
    .navbar-right>div{
        margin-right: 20px;
    }

    .container-bottom{
        margin-top: 10px;
    }

</style>
</body>
</html>
